sarutak opened a new pull request, #55979: URL: https://github.com/apache/spark/pull/55979
### What changes were proposed in this pull request? This PR adds two missing delegation methods to `DelegatingCatalogExtension`: 1. `createTable(Identifier, TableInfo)` - added to `TableCatalog` in 4.1.0 but never delegated 2. `createTableLike(Identifier, TableInfo, Table)` - added to `TableCatalog` in 4.2.0 but never delegated ### Why are the changes needed? `DelegatingCatalogExtension` is designed to delegate all catalog operations to the underlying session catalog, so that subclasses (e.g., Delta's `DeltaCatalog`, Hudi's `HoodieCatalog`) only need to override methods where they want custom logic. Without these delegations, connectors extending `DelegatingCatalogExtension` that do not explicitly override these methods will hit the default `UnsupportedOperationException` in `TableCatalog`, even if the underlying delegate catalog supports the operation. In particular, `CREATE TABLE ... LIKE ...` will fail for any catalog that extends `DelegatingCatalogExtension` without overriding `createTableLike`. This is the same class of issue that was fixed in SPARK-42398 (#40369), where the `createTable(Column[])` overload was added to `TableCatalog` but the delegation in `DelegatingCatalogExtension` was missed. ### Does this PR introduce _any_ user-facing change? No. `CREATE TABLE LIKE` for DSv2 is a new feature in Spark 4.2 and it's not been released yet. ### How was this patch tested? GA. ### Was this patch authored or co-authored using generative AI tooling? Generated-by: Claude (via Kiro CLI, auto model selection) -- 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]
