Skip to content

[Bug] lateral view explode_split("", ",") returns blank rows #64720

Description

@zjj

Search before asking

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

Version

version: apache-doris-4.1.2-bin-x64
doc: https://doris.apache.org/zh-CN/docs/4.x/sql-manual/sql-functions/table-functions/explode-split

MySQL [demo]> create table example(
-> k1 int
-> ) properties(
-> "replication_num" = "1"
-> );
Query OK, 0 rows affected (0.01 sec)

MySQL [demo]>
MySQL [demo]> insert into example values(1);
Query OK, 1 row affected (0.36 sec)
{'label':'label_70557f2afaab4730_b4e0ee72fde66dc4', 'status':'VISIBLE', 'txnId':'4'}

MySQL [demo]> select * from example lateral view explode_split("", ",") t2 as c;
Empty set (0.04 sec)

What's Wrong?

the following query shall return one line.

MySQL [demo]> select * from example lateral view explode_split("", ",") t2 as c;
Empty set (0.04 sec)

What You Expected?

as the docs,

select * from example lateral view explode_split("abc", ",") t2 as c;

+------+------+
| k1 | c |
+------+------+
| 1 | abc |
+------+------+l

3.x works ok

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions