-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[ES|QL] Replace RoundTo linear search evaluator with manual evaluators #131733
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
Merged
fang-xing-esql
merged 19 commits into
elastic:main
from
fang-xing-esql:replace-roundto-linearsearch-with-manual-evaluator
Jul 25, 2025
Merged
Changes from 15 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
93d43e9
replace linear search evaluator with manual evaluators
fang-xing-esql 0066fab
[CI] Auto commit changes from spotless
e69dd01
Merge branch 'main' into replace-roundto-linearsearch-with-manual-eva…
fang-xing-esql ad06778
Merge branch 'main' into replace-roundto-linearsearch-with-manual-eva…
fang-xing-esql d914ae0
spotless
fang-xing-esql 55de695
Merge branch 'main' into replace-roundto-linearsearch-with-manual-eva…
fang-xing-esql e6b4e5f
try to fix spotless
fang-xing-esql 4af67be
try to fix spotless
fang-xing-esql 5eb0a29
Try to fix spotless
fang-xing-esql c1013b4
exclude all files under generated-src from spotless
fang-xing-esql 378660c
[CI] Auto commit changes from spotless
f247d79
Merge branch 'main' into replace-roundto-linearsearch-with-manual-eva…
fang-xing-esql 186d172
Merge branch 'main' into replace-roundto-linearsearch-with-manual-eva…
fang-xing-esql b62fb3c
Merge branch 'main' into replace-roundto-linearsearch-with-manual-eva…
fang-xing-esql c7b5d8d
Update docs/changelog/131733.yaml
fang-xing-esql 086dd8f
fix formatter
nik9000 728d247
add comments to the manual binary search methods
fang-xing-esql 974e859
Merge branch 'main' into replace-roundto-linearsearch-with-manual-eva…
fang-xing-esql 5bc1693
Merge branch 'main' into replace-roundto-linearsearch-with-manual-eva…
fang-xing-esql File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| pr: 131733 | ||
| summary: Replace `RoundTo` linear search evaluator with manual evaluators | ||
| area: ES|QL | ||
| type: enhancement | ||
| issues: [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
218 changes: 202 additions & 16 deletions
218
...rated-src/org/elasticsearch/xpack/esql/expression/function/scalar/math/RoundToDouble.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
Skip the format check on all files under
src/main/generated-src/, I don't see this subfoldersrc/main/generated-src/generated/.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.
I liked that we were running spotless on these - it forces us to write the templates in a way that keeps the style consistent. It's a pain though. Can you try removing this and fixing the templates? I know it's really picky and annoying. But it helps keep the code more readable.
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.
Thanks for the tricks!