[Bug] split_by_string("",',')

Open Beginner friendly
#64,803 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
sql
Domain
database

Research direction

Start by locating the SQL function entry point for split_by_string and any existing tests covering empty-string input. Reproduce split_by_string("", ',') and update the behavior so the result is ['']; add or adjust a regression test that confirms this expected output.

Written by the indexing model from the issue text.

Description

Search before asking
  • I had searched in the issues and found no similar issues.
Version

3.x 4.x

MySQL [(none)]> select split_by_string("",',');
+-------------------------+
| split_by_string("",',') |
+-------------------------+
| [] |
+-------------------------+

What's Wrong?

select split_by_string("",',') returns []

What You Expected?

select split_by_string("",',') shall return ['']

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?
  • Yes I am willing to submit a PR!
Code of Conduct
Dominant language
Java
Stars
16k
Forks
4k
Avg merge
2d 12h
Merged PRs (30d)
569

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/doris

All issues in apache/doris

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.