Search before asking
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?
Code of Conduct
Search before asking
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?
Code of Conduct