dtenedor opened a new pull request, #42100:
URL: https://github.com/apache/spark/pull/42100
### What changes were proposed in this pull request?
This PR adds SQL grammar for PARTITION BY and ORDER BY clause after TABLE
arguments for TVF calls.
Examples:
```
select * from tvf(arg1 => table(t1) partition by col1);
select * from tvf(arg1 => table(t1) partition by col1 order by col2 asc);
select * from tvf(arg1 => table(t1) partition by col1, col2 order by col2
asc, col3 desc);
select * from tvf(arg1 => table(select col1, col2, col3 from v2)
partition by col1, col2 order by col2 asc, col3 desc);
```
### Why are the changes needed?
This will provide a way for the TVF caller to indicate desired semantics for
dividing up the rows of the input table into partitions for consumption by the
underlying algorithm.
### Does this PR introduce _any_ user-facing change?
Yes, it adds new SQL grammar.
### How was this patch tested?
This PR adds new parser unit tests. Currently the parser returns "not
implemented yet" error for these cases, and we will implement analysis for them
next.
--
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]