You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/05/04 01:23:11 UTC

[GitHub] [arrow-datafusion] alamb commented on a diff in pull request #2416: Fix bug in subquery join filters referencing outer query

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


##########
datafusion/core/src/sql/planner.rs:
##########
@@ -4523,6 +4562,35 @@ mod tests {
         quick_test(sql, &expected);
     }
 
+    #[test]
+    fn scalar_subquery_reference_outer_field() {
+        let sql = "SELECT j1_string, j2_string \
+        FROM j1, j2 \
+        WHERE j1_id = j2_id - 1 \
+        AND j2_id < (SELECT count(*) \

Review Comment:
   Oh so tricky 👍 



-- 
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-unsubscribe@arrow.apache.org

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