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-17 22:45:53 +08:00
2022-09-13 23:24:48 +08:00
2022-08-17 22:45:53 +08:00
2022-09-16 09:08:53 +08:00
2022-08-19 10:57:55 +08:00
2022-09-07 09:10:42 +08:00
2022-09-20 21:08:48 +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-07 09:10:42 +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-07 15:21:08 +08:00
2022-09-21 09:19:18 +08:00
2022-09-16 10:27:50 +08:00