jackwener commented on code in PR #4185:
URL: https://github.com/apache/arrow-datafusion/pull/4185#discussion_r1020754829
##########
datafusion/sql/src/planner.rs:
##########
@@ -5135,15 +4951,15 @@ mod tests {
AND person.state = p.state)";
let expected = "Projection: person.id\
- \n Filter: EXISTS (<subquery>)\
+ \n Filter: person.id = p.id AND EXISTS (<subquery>)\
\n Subquery:\
\n Projection: person.first_name\
- \n Filter: person.last_name = p.last_name AND person.state =
p.state\
- \n Inner Join: person.id = p2.id\
+ \n Filter: person.id = p2.id AND person.last_name = p.last_name
AND person.state = p.state\
+ \n CrossJoin:\
\n TableScan: person\
\n SubqueryAlias: p2\
\n TableScan: person\
- \n Inner Join: person.id = p.id\
+ \n CrossJoin:\
\n TableScan: person\
Review Comment:
Expected
It's just because it's just build plan without optimization.
--
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]