camby
c5b6056b7a
[fix](lateral_view) fix lateral view explode_split with temp table (#12643)
Problem describe:
follow SQL return wrong result:
WITH example1 AS ( select 6 AS k1 ,'a,b,c' AS k2) select k1, e1 from example1 lateral view explode_split(k2, ',') tmp as e1;
Wrong result:
+------+------+
| k1 | e1 |
+------+------+
| 0 | a |
| 0 | b |
| 0 | c |
+------+------+
Correct result should be:
+------+------+
| k1 | e1 |
+------+------+
| 6 | a |
| 6 | b |
| 6 | c |
+------+------+
Why?
TableFunctionNode::outputSlotIds do not include column k1.
Co-authored-by: cambyzju <zhuxiaoli01@baidu.com>
2022-09-21 09:19:18 +08:00
..
2022-08-21 10:03:30 +08:00
2022-08-19 10:57:55 +08:00
2022-08-17 22:45:53 +08:00
2022-08-17 22:45:53 +08:00
2022-08-17 22:45:53 +08:00
2022-08-17 22:45:53 +08:00
2022-08-17 22:45:53 +08:00
2022-09-19 11:47:50 +08:00
2022-08-26 14:29:56 +08:00
2022-08-29 12:08:20 +08:00
2022-09-18 17:36:08 +08:00
2022-09-18 17:36:08 +08:00
2022-09-18 17:36:08 +08:00
2022-09-21 09:19:18 +08:00
2022-08-26 14:29:14 +08:00
2022-08-17 22:45:53 +08:00
2022-08-17 22:45:53 +08:00
2022-08-17 22:45:53 +08:00
2022-08-17 22:45:53 +08:00
2022-08-17 22:45:53 +08:00
2022-08-17 22:45:53 +08:00
2022-08-17 22:45:53 +08:00
2022-08-17 22:45:53 +08:00