Skip to content
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

[SPARK-48312][SQL] Improve Alias.removeNonInheritableMetadata performance #46622

Conversation

vladimirg-db
Copy link
Contributor

@vladimirg-db vladimirg-db commented May 16, 2024

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

@vladimirg-db vladimirg-db marked this pull request as ready for review May 16, 2024 15:32
@github-actions github-actions bot added the SQL label May 16, 2024
@vladimirg-db
Copy link
Contributor Author

@agubichev, hi! Here's the improvement fix for the ultra-wide views

@agubichev
Copy link
Contributor

@cloud-fan PTAL

@vladimirg-db vladimirg-db force-pushed the vladimirg-db/improve-remove-non-inheritable-metadata-performance branch from 08ff35e to d2c9b52 Compare May 16, 2024 18:57
@HyukjinKwon HyukjinKwon changed the title [SQL][SPARK-48312] Improve Alias.removeNonInheritableMetadata performance [SPARK-48312][SQL] Improve Alias.removeNonInheritableMetadata performance May 17, 2024
@vladimirg-db vladimirg-db force-pushed the vladimirg-db/improve-remove-non-inheritable-metadata-performance branch from d2c9b52 to 30b027c Compare May 17, 2024 08:47
@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in 3edd6c7 May 17, 2024
@vladimirg-db vladimirg-db deleted the vladimirg-db/improve-remove-non-inheritable-metadata-performance branch May 17, 2024 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants