-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-49791][SQL] Make DelegatingCatalogExtension more extendable #48257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
...atalyst/src/main/java/org/apache/spark/sql/connector/catalog/DelegatingCatalogExtension.java
Outdated
Show resolved
Hide resolved
…log/DelegatingCatalogExtension.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM.
To @cloud-fan ,
- Do we need to
@DeveloperApiannotation additionally? - Do you want to backport this to
branch-3.5?
|
Hi @dongjoon-hyun , the entire And yes, we want to backport this to 3.5. |
|
Merged to master/3.5! Thank you, @cloud-fan and all! |
### What changes were proposed in this pull request? This PR updates `DelegatingCatalogExtension` so that it's more extendable - `initialize` becomes not final, so that sub-classes can overwrite it - `delegate` becomes `protected`, so that sub-classes can access it In addition, this PR fixes a mistake that `DelegatingCatalogExtension` is just a convenient default implementation, it's actually the `CatalogExtension` interface that indicates this catalog implementation will delegate requests to the Spark session catalog. #47724 should use `CatalogExtension` instead. ### Why are the changes needed? Unblock the Iceberg extension. ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? existing tests ### Was this patch authored or co-authored using generative AI tooling? no Closes #48257 from cloud-fan/catalog. Lead-authored-by: Wenchen Fan <[email protected]> Co-authored-by: Wenchen Fan <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 339dd5b) Signed-off-by: Dongjoon Hyun <[email protected]>
### What changes were proposed in this pull request? This PR is a follow-up for `branch-3.5` due to the difference of `import` statement. - #48257 ### Why are the changes needed? To fix the compilation. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #48271 from dongjoon-hyun/SPARK-49791. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
|
Hi @dongjoon-hyun @cloud-fan Could you please let me know if there is a plan or scheduled release date for Spark-354? thanks, -yuan |
What changes were proposed in this pull request?
This PR updates
DelegatingCatalogExtensionso that it's more extendableinitializebecomes not final, so that sub-classes can overwrite itdelegatebecomesprotected, so that sub-classes can access itIn addition, this PR fixes a mistake that
DelegatingCatalogExtensionis just a convenient default implementation, it's actually theCatalogExtensioninterface that indicates this catalog implementation will delegate requests to the Spark session catalog. #47724 should useCatalogExtensioninstead.Why are the changes needed?
Unblock the Iceberg extension.
Does this PR introduce any user-facing change?
no
How was this patch tested?
existing tests
Was this patch authored or co-authored using generative AI tooling?
no