xudong963 commented on a change in pull request #1259:
URL: https://github.com/apache/arrow-datafusion/pull/1259#discussion_r744261299



##########
File path: datafusion/src/sql/planner.rs
##########
@@ -195,26 +195,42 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
             } => {
                 let left_plan = self.set_expr_to_plan(left.as_ref(), None, 
ctes)?;
                 let right_plan = self.set_expr_to_plan(right.as_ref(), None, 
ctes)?;
+                let join_keys = left_plan

Review comment:
       I add an `if`, only `intersect` and `except` will get `join_keys`




-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to