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

[CALCITE-5894] Add SortRemoveRedundantRule to remove redundant sort fields if they are functionally dependent on other sort fields #3365

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JingDas
Copy link

@JingDas JingDas commented Aug 13, 2023

Sorting is an expensive operation, however. Therefore, it is imperative that sorting is optimized to avoid unnecessary sort field.

Add SortRemoveRedundantRule, it removes redundant sort fields if they are functionally dependent on other sort fields
RelMdFunctionalDependency is a minimal implementation that needs to be gradually improved in the future.

@sonarcloud
Copy link

sonarcloud bot commented Aug 13, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

95.9% 95.9% Coverage
0.0% 0.0% Duplication

@JingDas
Copy link
Author

JingDas commented Aug 19, 2023

The code has been ready, I will be very grateful if someone can help me review the code

…ields if they are functionally dependent on other sort fields

RelMdFunctionalDependency is a minimal implementation that needs to be gradually improved in the future
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants