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

   ### What changes were proposed in this pull request?
   
   This PR adds SQL pipe syntax support for the FROM operator.
   
   Note: this PR includes all content in 
https://github.com/apache/spark/pull/48724 and also fixes remaining tests.
   
   For example:
   
   ```
   CREATE TABLE t(x INT, y STRING) USING CSV;
   INSERT INTO t VALUES (0, 'abc'), (1, 'def');
   
   CREATE TABLE other(a INT, b INT) USING JSON;
   INSERT INTO other VALUES (1, 1), (1, 2), (2, 4);
   
   FROM t
   |> SELECT 1 AS X;
   ```
   
   ### Why are the changes needed?
   
   This allows users to use FROM in the pipe syntax format.
   
   ### Does this PR introduce any user-facing change?
   
   Yes, as indicated in the example.
   
   ### How was this patch tested?
   
   * Unit tests in `SparkSqlParserSuite` and `PlanParserSuite`.
   * Golden file based end to end tests in `pipe-operators.sql`.
   
   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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to