druid/docs
Abhishek Radhakrishnan f4ee58eaa8
Add `aggregatorMergeStrategy` property in SegmentMetadata queries (#14560)
* Add aggregatorMergeStrategy property to SegmentMetadaQuery.

- Adds a new property aggregatorMergeStrategy to segmentMetadata query.
aggregatorMergeStrategy currently supports three types of merge strategies -
the legacy strict and lenient strategies, and the new latest strategy.
- The latest strategy considers the latest aggregator from the latest segment
by time order when there's a conflict when merging aggregators from different
segments.
- Deprecate lenientAggregatorMerge property; The API validates that both the new
and old properties are not set, and returns an exception.
- When merging segments as part of segmentMetadata query, the segments have a more
elaborate id -- <datasource>_<interval>_merged_<partition_number> format, similar to
the name format that segments usually contain. Previously it was simply "merged".
- Adjust unit tests to test the latest strategy, to assert the returned complete
SegmentAnalysis object instead of just the aggregators for completeness.

* Don't explicitly set strict strategy in tests

* Apply suggestions from code review

Co-authored-by: Katya Macedo  <38017980+ektravel@users.noreply.github.com>

* Update docs/querying/segmentmetadataquery.md

* Apply suggestions from code review

Co-authored-by: Katya Macedo  <38017980+ektravel@users.noreply.github.com>

---------

Co-authored-by: Katya Macedo <38017980+ektravel@users.noreply.github.com>
2023-07-13 12:37:36 -04:00
..
_bin De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
api-reference Tasks API documentation refactor (#14492) 2023-07-11 13:19:39 -07:00
assets Fixup data deletion tutorial docs (#14283) 2023-05-17 17:05:35 -07:00
comparisons remove ref to plywood repo (#12809) 2022-07-26 10:12:13 +08:00
configuration Cross reference backpressure info (#14508) 2023-07-12 10:02:04 -07:00
data-management API reference refactor (#14372) 2023-06-26 15:48:54 -07:00
design Update slack text (#14578) 2023-07-12 12:08:48 -07:00
development Claim full support for Java 17. (#14384) 2023-07-07 12:52:35 -07:00
ingestion API reference refactor (#14372) 2023-06-26 15:48:54 -07:00
misc Update Ingestion section (#14023) 2023-05-19 09:42:27 -07:00
multi-stage-query Fix planning bug while using sort merge frame processor (#14450) 2023-07-11 09:58:44 +00:00
operations Add ZooKeeper connection state alerts and metrics. (#14333) 2023-07-12 09:34:28 -07:00
querying Add `aggregatorMergeStrategy` property in SegmentMetadata queries (#14560) 2023-07-13 12:37:36 -04:00
tutorials Update Jupyter notebook tutorial instructions for ARM devices (#14459) 2023-07-11 10:01:20 -07:00