-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Added approximation support for range queries with now in date field #18511
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
Conversation
|
❌ Gradle check result for a10494d: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for d3a0085: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 93d2077: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
server/src/main/java/org/opensearch/index/mapper/DateFieldMapper.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/opensearch/index/query/RangeQueryBuilderTests.java
Show resolved
Hide resolved
server/src/test/java/org/opensearch/index/query/RangeQueryBuilderTests.java
Show resolved
Hide resolved
|
❌ Gradle check result for 4d47c42: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for 0b81313: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
modules/percolator/src/main/java/org/opensearch/percolator/QueryAnalyzer.java
Outdated
Show resolved
Hide resolved
server/src/test/java/org/opensearch/search/approximate/ApproximatePointRangeQueryTests.java
Outdated
Show resolved
Hide resolved
|
Adding @kkewwei as well for the PR review. |
modules/percolator/src/main/java/org/opensearch/percolator/QueryAnalyzer.java
Outdated
Show resolved
Hide resolved
|
❌ Gradle check result for 5aa1e77: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Flaky test: #18310 |
|
❌ Gradle check result for 1cd4d4f: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Flaky test: #15840 |
|
❌ Gradle check result for 3f49bd6: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Flaky test: #14509 |
server/src/test/java/org/opensearch/search/approximate/ApproximatePointRangeQueryTests.java
Outdated
Show resolved
Hide resolved
|
❌ Gradle check result for 3f49bd6: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
❌ Gradle check result for ccaebc3: null Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Sawan Srivastava <[email protected]>
Signed-off-by: Sawan Srivastava <[email protected]>
Signed-off-by: Sawan Srivastava <[email protected]>
Signed-off-by: Sawan Srivastava <[email protected]>
Signed-off-by: Sawan Srivastava <[email protected]>
Signed-off-by: Sawan Srivastava <[email protected]>
Signed-off-by: Sawan Srivastava <[email protected]>
Signed-off-by: Sawan Srivastava <[email protected]>
Signed-off-by: Sawan Srivastava <[email protected]>
…ersions Signed-off-by: Sawan Srivastava <[email protected]>
Signed-off-by: Sawan Srivastava <[email protected]>
|
❌ Gradle check result for b1d070a: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Flaky test: #17937 |
Signed-off-by: Sawan Srivastava <[email protected]>
|
❌ Gradle check result for 76b2863: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
@kkewwei @sandeshkr419 are we good this PR? |
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.
LGTM
b0417f3
into
opensearch-project:main
…pensearch-project#18511) * Added approximation support for range queries with now in date field Signed-off-by: Sawan Srivastava <[email protected]> * Updated tests to fit new query hierarchy Signed-off-by: Sawan Srivastava <[email protected]> * refactored approximation logic for DateRangeIncludingNowQuery Signed-off-by: Sawan Srivastava <[email protected]> * added validation test for DateRangeIncludingNowQuery approximation Signed-off-by: Sawan Srivastava <[email protected]> * fixed percolation query analyzer logic to check for DateRangeIncludingNowQuery Signed-off-by: Sawan Srivastava <[email protected]> * updated DateFieldTypeTests to reflect new DateRangeIncludingNow query structure Signed-off-by: Sawan Srivastava <[email protected]> * refactored date range query to use overloaded function and cleaned up percolation subquery visitor logic Signed-off-by: Sawan Srivastava <[email protected]> * cleaned up testApproximateVsExactQuery function signature Signed-off-by: Sawan Srivastava <[email protected]> * Rerun gradle check Signed-off-by: Sawan Srivastava <[email protected]> * Removed redundancy in DateRangeIncludingNow approximation logic Signed-off-by: Sawan Srivastava <[email protected]> * Refactored DateRangeIncludingNowTests for conciseness Signed-off-by: Sawan Srivastava <[email protected]> * applied spotless Signed-off-by: Sawan Srivastava <[email protected]> * Removed unused handleNow method Signed-off-by: Sawan Srivastava <[email protected]> * refactored approximation wrapping logic Signed-off-by: Sawan Srivastava <[email protected]> * applied spotless Signed-off-by: Sawan Srivastava <[email protected]> * Refactored tests to use DateFieldType Signed-off-by: Sawan Srivastava <[email protected]> * applied spotless Signed-off-by: Sawan Srivastava <[email protected]> * Refactored DateRangeIncludingNow tests to reflect new parameterized versions Signed-off-by: Sawan Srivastava <[email protected]> * update CHANGELOG.md Signed-off-by: Sawan Srivastava <[email protected]> * rerun gradle check Signed-off-by: Sawan Srivastava <[email protected]> --------- Signed-off-by: Sawan Srivastava <[email protected]> Signed-off-by: sunqijun.jun <[email protected]>
…pensearch-project#18511) * Added approximation support for range queries with now in date field Signed-off-by: Sawan Srivastava <[email protected]> * Updated tests to fit new query hierarchy Signed-off-by: Sawan Srivastava <[email protected]> * refactored approximation logic for DateRangeIncludingNowQuery Signed-off-by: Sawan Srivastava <[email protected]> * added validation test for DateRangeIncludingNowQuery approximation Signed-off-by: Sawan Srivastava <[email protected]> * fixed percolation query analyzer logic to check for DateRangeIncludingNowQuery Signed-off-by: Sawan Srivastava <[email protected]> * updated DateFieldTypeTests to reflect new DateRangeIncludingNow query structure Signed-off-by: Sawan Srivastava <[email protected]> * refactored date range query to use overloaded function and cleaned up percolation subquery visitor logic Signed-off-by: Sawan Srivastava <[email protected]> * cleaned up testApproximateVsExactQuery function signature Signed-off-by: Sawan Srivastava <[email protected]> * Rerun gradle check Signed-off-by: Sawan Srivastava <[email protected]> * Removed redundancy in DateRangeIncludingNow approximation logic Signed-off-by: Sawan Srivastava <[email protected]> * Refactored DateRangeIncludingNowTests for conciseness Signed-off-by: Sawan Srivastava <[email protected]> * applied spotless Signed-off-by: Sawan Srivastava <[email protected]> * Removed unused handleNow method Signed-off-by: Sawan Srivastava <[email protected]> * refactored approximation wrapping logic Signed-off-by: Sawan Srivastava <[email protected]> * applied spotless Signed-off-by: Sawan Srivastava <[email protected]> * Refactored tests to use DateFieldType Signed-off-by: Sawan Srivastava <[email protected]> * applied spotless Signed-off-by: Sawan Srivastava <[email protected]> * Refactored DateRangeIncludingNow tests to reflect new parameterized versions Signed-off-by: Sawan Srivastava <[email protected]> * update CHANGELOG.md Signed-off-by: Sawan Srivastava <[email protected]> * rerun gradle check Signed-off-by: Sawan Srivastava <[email protected]> --------- Signed-off-by: Sawan Srivastava <[email protected]>
…pensearch-project#18511) * Added approximation support for range queries with now in date field Signed-off-by: Sawan Srivastava <[email protected]> * Updated tests to fit new query hierarchy Signed-off-by: Sawan Srivastava <[email protected]> * refactored approximation logic for DateRangeIncludingNowQuery Signed-off-by: Sawan Srivastava <[email protected]> * added validation test for DateRangeIncludingNowQuery approximation Signed-off-by: Sawan Srivastava <[email protected]> * fixed percolation query analyzer logic to check for DateRangeIncludingNowQuery Signed-off-by: Sawan Srivastava <[email protected]> * updated DateFieldTypeTests to reflect new DateRangeIncludingNow query structure Signed-off-by: Sawan Srivastava <[email protected]> * refactored date range query to use overloaded function and cleaned up percolation subquery visitor logic Signed-off-by: Sawan Srivastava <[email protected]> * cleaned up testApproximateVsExactQuery function signature Signed-off-by: Sawan Srivastava <[email protected]> * Rerun gradle check Signed-off-by: Sawan Srivastava <[email protected]> * Removed redundancy in DateRangeIncludingNow approximation logic Signed-off-by: Sawan Srivastava <[email protected]> * Refactored DateRangeIncludingNowTests for conciseness Signed-off-by: Sawan Srivastava <[email protected]> * applied spotless Signed-off-by: Sawan Srivastava <[email protected]> * Removed unused handleNow method Signed-off-by: Sawan Srivastava <[email protected]> * refactored approximation wrapping logic Signed-off-by: Sawan Srivastava <[email protected]> * applied spotless Signed-off-by: Sawan Srivastava <[email protected]> * Refactored tests to use DateFieldType Signed-off-by: Sawan Srivastava <[email protected]> * applied spotless Signed-off-by: Sawan Srivastava <[email protected]> * Refactored DateRangeIncludingNow tests to reflect new parameterized versions Signed-off-by: Sawan Srivastava <[email protected]> * update CHANGELOG.md Signed-off-by: Sawan Srivastava <[email protected]> * rerun gradle check Signed-off-by: Sawan Srivastava <[email protected]> --------- Signed-off-by: Sawan Srivastava <[email protected]>
Description
Rewrites DateRangeIncludingNowQuery logic in handleNow to utilize optimizations made to Point Range Queries.
Related Issues
Resolves #18503
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.