Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
planner: fix wrong column calculation in ColumnPruning for LogicalUnionAll #10384
What problem does this PR solve?
What is changed and how it works?
Wrongly used Children().Schema().Columns in ColumnPruning for LogicalUnionAll.
ColumnPruning for LogicalUnionAll calculate its own Columns instead of use Childres's, which will lead to wrong column names.
For column name in LogicalUnionAll contains table name (AsName in ast), but logicalProjection does not and should not contain table name.
@@ Coverage Diff @@ ## master #10384 +/- ## =============================================== - Coverage 77.353% 77.3525% -0.0006% =============================================== Files 412 412 Lines 85729 85705 -24 =============================================== - Hits 66314 66295 -19 + Misses 14386 14381 -5 Partials 5029 5029