spark
spark copied to clipboard
[SPARK-31357][SQL][WIP] Catalog API for view metadata
What changes were proposed in this pull request?
This PR adds support to load, create, alter, and drop views in DataSource V2 catalogs.
This is an umbrella PR that combines the following commits that probably should be merged one by one.
- View catalog interface
- View substitution rule
- Create view DDL
- View SQL DDLs
- Caching for ViewCatalog
Why are the changes needed?
Support views stored in DataSourceV2 catalogs. Details in SPIP.
Does this PR introduce any user-facing change?
- Support views from DataSource V2 catalogs in SQL
- Support views from DataSource V2 catalogs in DataFrame API
How was this patch tested?
New unit tests
Regression
- DDLParserSuite
- PlanResolutionSuite
- DataSourceV2SQLSuite
@jzhuge The PR as-is seems to only contain the view catalog interface, not the other 3 facets that you mentioned. Is this intentional?
Sorry, not added yet.
On Tue, Mar 1, 2022 at 3:07 PM Erik Krogen @.***> wrote:
@jzhuge https://github.com/jzhuge The PR as-is seems to only contain the view catalog interface, not the other 3 facets that you mentioned. Is this intentional?
— Reply to this email directly, view it on GitHub https://github.com/apache/spark/pull/35636#issuecomment-1055950260, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOL5JBTAQ7T2PPHR73HSFLU52PJLANCNFSM5PFSWFAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
-- John Zhuge
https://github.com/apache/spark/pull/28147 PR available? Why submit a new PR?
@melin #28147 was marked stale and closed.
Retest please
Does this PR need to update ResolveSessionCatalog?
Currently, CreateView only supports V1 catalog.
Likely. This PR will support creating v2 views.
Likely. This PR will support creating v2 views.
Thanks. What about other commands, such as dropview, alterivew? They also do not support v2 view, currently.
Yes, many view DDL commands will be implemented, you can find a complete list in SPIP.
Thanks @ljfgem @wmoustafa for the comments. Looking ...
Also may add a few unit tests to illustrate some scenarios.
Hi Melin,
I opened a new PR because #28147 https://github.com/apache/spark/pull/28147 was closed and it was way out of sync from the current main branch.
Thanks,
On Fri, Mar 11, 2022 at 1:02 AM melin @.***> wrote:
#28147 https://github.com/apache/spark/pull/28147 PR available? Why submit a new PR?
— Reply to this email directly, view it on GitHub https://github.com/apache/spark/pull/35636#issuecomment-1064910166, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOL5JCGJGNK3D4FROQQWBTU7MDZLANCNFSM5PFSWFAQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID: @.***>
-- John Zhuge
We're closing this PR because it hasn't been updated in a while. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. If you'd like to revive this PR, please reopen it and ask a committer to remove the Stale tag!
@jzhuge Have a plan to complete this PR?
Yes
On Thu, Oct 12, 2023 at 9:41 PM melin @.***> wrote:
@jzhuge https://github.com/jzhuge Have a plan to complete this PR?
— Reply to this email directly, view it on GitHub https://github.com/apache/spark/pull/35636#issuecomment-1760790245, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOL5JE3Q65KVSAQLBHQMW3X7DA6ZANCNFSM5PFSWFAQ . You are receiving this because you were mentioned.Message ID: @.***>