You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix auto date histogram rounding assertion bug (#17023)
* Add comments explanations for auto date histo increaseRoundingIfNeeded.
Signed-off-by: Finn Carroll <[email protected]>
* Add testFilterRewriteWithTZRoundingRangeAssert() to reproduce auto date histo assertion bug per #16932
Signed-off-by: Finn Carroll <[email protected]>
* Fix#16932. Ensure optimized path can only increase preparedRounding of agg.
Signed-off-by: Finn Carroll <[email protected]>
* Spotless apply
Signed-off-by: Finn Carroll <[email protected]>
* Fast fail filter rewrite opt in data histo aggs for non UTC timezones
Signed-off-by: Finn Carroll <[email protected]>
* Remove redundant UTC check from getInterval().
Signed-off-by: Finn Carroll <[email protected]>
* Save a call to prepareRounding if roundingIdx is unchanged.
Signed-off-by: Finn Carroll <[email protected]>
* Spotless apply
Signed-off-by: Finn Carroll <[email protected]>
* Changelog
Signed-off-by: Finn Carroll <[email protected]>
* Add ZoneId getter for date histo filter rewrite canOptimize check.
Signed-off-by: Finn Carroll <[email protected]>
* Spotless apply
Signed-off-by: Finn Carroll <[email protected]>
* Disable ff optimzation for composite agg in canOptimize.
Signed-off-by: Finn Carroll <[email protected]>
* Spotless apply
Signed-off-by: Finn Carroll <[email protected]>
* Handle utc timezone check
Signed-off-by: bowenlan-amzn <[email protected]>
* Remove redundant timeZone getter.
Signed-off-by: Finn Carroll <[email protected]>
* Simplify ff prepared rounding check.
Signed-off-by: Finn Carroll <[email protected]>
---------
Signed-off-by: Finn Carroll <[email protected]>
Signed-off-by: bowenlan-amzn <[email protected]>
Co-authored-by: bowenlan-amzn <[email protected]>
(cherry picked from commit de59264)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy file name to clipboardexpand all lines: server/src/main/java/org/opensearch/search/aggregations/bucket/filterrewrite/DateHistogramAggregatorBridge.java
+9-1
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,15 @@ public abstract class DateHistogramAggregatorBridge extends AggregatorBridge {
Copy file name to clipboardexpand all lines: server/src/test/java/org/opensearch/search/aggregations/bucket/histogram/AutoDateHistogramAggregatorTests.java
0 commit comments