szehon-ho opened a new pull request, #41683:
URL: https://github.com/apache/spark/pull/41683
### What changes were proposed in this pull request?
This pr adds SQL UDF: with_options('table', map('foo', 'bar')).
Details:
1. Add RelationWithOptions UDF object
2. Add ResolveRelationsWithOptions rule to resolve that to a Relation, with
the given options.
### Why are the changes needed?
Currently there is no way to dynamically configure individual DataSource
relations in Spark SQL query.
This is a continuation of the effort in
https://github.com/apache/spark/pull/34072, and based on the comment there
https://github.com/apache/spark/pull/34072#issuecomment-968451305, to use a TVF
instead of query hints.
### Does this PR introduce _any_ user-facing change?
No
### How was this patch tested?
Unit test in DataSourceV2SQLSuite
--
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]