alamb commented on code in PR #2534:
URL: https://github.com/apache/arrow-datafusion/pull/2534#discussion_r873659497


##########
datafusion/core/src/sql/planner.rs:
##########
@@ -4767,6 +4758,32 @@ mod tests {
         quick_test(sql, expected);
     }
 
+    #[test]
+    fn join_on_disjunction_condition() {
+        let sql = "SELECT id, order_id \
+            FROM person \
+            JOIN orders ON id = customer_id OR person.age > 30";
+        let expected = "Projection: #person.id, #orders.order_id\
+            \n  Filter: #person.id = #orders.customer_id OR #person.age > 
Int64(30)\

Review Comment:
   👍 



-- 
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]

Reply via email to