manuzhang opened a new pull request, #18432: URL: https://github.com/apache/iceberg/pull/18432
Back-port of #18255 to Spark 3.5, 4.0 and 4.1. ### Problem Renaming a qualified view to an unqualified target moves the view into the session's current namespace instead of keeping it in the source view's namespace. ```sql USE catalog.other_ns; ALTER VIEW source_ns.v RENAME TO v2; -- v2 lands in other_ns, not source_ns ``` ### Changes - `ExtendedDataSourceV2Strategy`: resolve single-part rename targets with an empty namespace, and resolve multi-part targets relative to the source catalog, keeping the existing cross-catalog move rejection. - `RenameV2ViewExec`: fill in an empty target namespace from the source view, as `IcebergRenameV2ViewExec` does in Spark 4.2. - `Spark3Util`: document how single-part names are resolved. - Add the regression test from #18255 to `TestViews`. ### Tests `TestViews` passes on Spark 3.5, 4.0 and 4.1 (258 tests each, no failures). --- **AI Disclosure** - Model: Claude Opus 5.5 - Platform/Tool: Claude Code - Human Oversight: partially reviewed - Prompt Summary: back-port the Spark 4.2 view rename target namespace fix (#18255) to Spark 3.5, 4.0 and 4.1. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
