Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-48312][SQL] Improve Alias.removeNonInheritableMetadata perform…
…ance ### What changes were proposed in this pull request? Improve `Alias.removeNonInheritableMetadata` performance - avoid using `MetadataBuilder` when there is no metadata or when there are no non-inheritable metadata keys to remove. ### Why are the changes needed? In case of wide VIEWs with many Aliases this method slows down the analysis ### 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 apache#46622 from vladimirg-db/vladimirg-db/improve-remove-non-inheritable-metadata-performance. Authored-by: Vladimir Golubev <vladimir.golubev@databricks.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com>
- Loading branch information