westonpace commented on issue #6867:
URL:
https://github.com/apache/arrow-datafusion/issues/6867#issuecomment-1802477100
Is your argument/concern that these two plans would produce different
results?
```
[Original plan]
Projection: d1.b
LeftSemi Join: d1.a = __correlated_sq_1.a Filter: __correlated_sq_1.e !=
d1.e
SubqueryAlias: d1
TableScan: data projection=[a, b, e]
SubqueryAlias: __correlated_sq_1
SubqueryAlias: d2
TableScan: data projection=[a, e]
[Unoptimized plan from consumer]
Projection: data.b
LeftSemi Join: data.a = data.a Filter: data.e != data.e
TableScan: data projection=[a, b, e]
TableScan: data projection=[a, e]
```
The aliases won't actually change the results. They appear identical to me.
Or is your concern that the aliases are lost because your application is
depending on the aliases for some reason unrelated to the results?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]