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

[Backport 2.x] Apply the date histogram rewrite optimization to range aggregation #14463

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 57fb50b from #13865.

…13865)

* Refactor the ranges representation

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* Refactor try fast filter

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* Main work finished; left the handling of different numeric data types

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* buildRanges accepts field type

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* first working draft probably

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* add change log

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* accommodate geo distance agg

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* Fix test

support all numeric types
minus one on the upper range

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* [Refactor] range is lower inclusive, right exclusive

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* adding test

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* Adding test and refactor

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* refactor

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* add test

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* add test and update the compare logic in tree traversal

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* fix test, add random test

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* refactor to address comments

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* small potential performance update

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* fix precommit

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* refactor

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* refactor

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* set refresh_interval to -1

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* address comment

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* address comment

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* address comment

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

* Fix test

To understand fully about the double and bigdecimal usage in scaled float field will take more time.

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>

---------

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>
(cherry picked from commit 57fb50b)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

✅ Gradle check result for a9c175d: SUCCESS

@mch2 mch2 merged commit e41162f into 2.x Jun 20, 2024
51 checks passed
@mch2 mch2 deleted the backport/backport-13865-to-2.x branch June 20, 2024 02:15
kkewwei pushed a commit to kkewwei/OpenSearch that referenced this pull request Jul 24, 2024
…pensearch-project#13865) (opensearch-project#14463)

* Refactor the ranges representation

* Refactor try fast filter

* Main work finished; left the handling of different numeric data types

* buildRanges accepts field type

* first working draft probably

* add change log

* accommodate geo distance agg

* Fix test

support all numeric types
minus one on the upper range

* [Refactor] range is lower inclusive, right exclusive

* adding test

* Adding test and refactor

* refactor

* add test

* add test and update the compare logic in tree traversal

* fix test, add random test

* refactor to address comments

* small potential performance update

* fix precommit

* refactor

* refactor

* set refresh_interval to -1

* address comment

* address comment

* address comment

* Fix test

To understand fully about the double and bigdecimal usage in scaled float field will take more time.

---------

(cherry picked from commit 57fb50b)

Signed-off-by: bowenlan-amzn <bowenlan23@gmail.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: kkewwei <kkewwei@163.com>
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.

1 participant