-
Notifications
You must be signed in to change notification settings - Fork 25k
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
QL: Improve removal of items during iteration #71193
Conversation
Clean-up the range optimization rule by avoid the use of indices during iteration and removal (since it skips an element each time) Remove redundant ternary calls
Pinging @elastic/es-ql (Team:QL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good find.
I guess the tests cover the first change set, not sure if it's worth adding a new one to reveal the fixed defect -- up to you.
LGTM.
I think the issue did not occur in practice since the rule skipped one element but on a subsequent run, it picked it up and applied the compression again. |
Clean-up the range optimization rule by avoid the use of indices during iteration and removal (since it skips an element each time) Remove redundant ternary calls
Clean-up the range optimization rule by avoid the use of indices during iteration and removal (since it skips an element each time) Remove redundant ternary calls
Clean-up the range optimization rule by avoid the use of indices during
iteration and removal (since it skips an element each time)
Remove redundant ternary calls