You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "dtenedor (via GitHub)" <gi...@apache.org> on 2024/09/26 20:46:28 UTC

[PR] [WIP][SPARK-49564] Add SQL pipe syntax for the JOIN operator [spark]

dtenedor opened a new pull request, #48270:
URL: https://github.com/apache/spark/pull/48270

   ### What changes were proposed in this pull request?
   
   WIP
   
   This PR adds SQL pipe syntax support for the JOIN operator.
   
   For example:
   
   ```
   create temporary view join_test_t1
     as select * from values (1) as grouping(a);
   create temporary view join_test_empty_table
     as select a from join_test_t1 where false;
   
   table join_test_t1
   |> full outer join join_test_empty_table
      on (join_test_t1.a = join_test_empty_table.a);
   
   1	NULL
   ```
   
   ### Why are the changes needed?
   
   The SQL pipe operator syntax will let users compose queries in a more flexible fashion.
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes, see above.
   
   ### How was this patch tested?
   
   This PR adds a few unit test cases, but mostly relies on golden file test coverage. I did this to make sure the answers are correct as this feature is implemented and also so we can look at the analyzer output plans to ensure they look right as well.
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No


-- 
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: reviews-unsubscribe@spark.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org