Skip to content

[Bug] split_part function split String bug #14704

@lit2430

Description

@lit2430

Search before asking

  • I had searched in the issues and found no similar issues.

Version

doris 0.15 - 1.2

What's Wrong?

If the string does not contain a delimiter, null is returned
image

What You Expected?

If the string does not contain a delimiter, should the original data be returned instead of null

How to Reproduce?

SELECT split_part ("23456/123", '/', 1 )

SELECT split_part ("23456", '/', 1 )

Anything Else?

no

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions