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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]