ProjectionPushDown
rule don't consider the alias in projection.
#4174
Labels
bug
Something isn't working
ProjectionPushDown
rule don't consider the alias in projection.
#4174
Describe the bug
when just need c1, but due to alias, projection will contains c1 and its alias column(if exists).
like tablescan include
c1, c2
, if we projectc1 as c2
, projection include[c1, c2]
.It's because the
pushdown project
rule don't handlealias
. In fact, when handleprojection with alias
, we need replace thealias column
innew_required_columns
, but if we see the code of this rule, we can find that it didn't consideralias
.For example:
when we meet
project c1 as c2
, ifnew_required_columns
include c2, we need replace it with c1.It's a future ticket, I have debug this rule, I will try to fix it.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: