druid/docs
Clint Wylie 4096f51f0b
add configurable ColumnTypeMergePolicy to SegmentMetadataCache (#14319)
This PR adds a new interface to control how SegmentMetadataCache chooses ColumnType when faced with differences between segments for SQL schemas which are computed, exposed as druid.sql.planner.metadataColumnTypeMergePolicy and adds a new 'least restrictive type' mode to allow choosing the type that data across all segments can best be coerced into and sets this as the default behavior.

This is a behavior change around when segment driven schema migrations take effect for the SQL schema. With latestInterval, the SQL schema will be updated as soon as the first job with the new schema has published segments, while using leastRestrictive, the schema will only be updated once all segments are reindexed to the new type. The benefit of leastRestrictive is that it eliminates a bunch of type coercion errors that can happen in SQL when types are varied across segments with latestInterval because the newest type is not able to correctly represent older data, such as if the segments have a mix of ARRAY and number types, or any other combinations that lead to odd query plans.
2023-05-24 20:32:51 +05:30
..
_bin De-incubation cleanup in code, docs, packaging (#9108) 2020-01-03 12:33:19 -05:00
api-reference Update Ingestion section (#14023) 2023-05-19 09:42:27 -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 add configurable ColumnTypeMergePolicy to SegmentMetadataCache (#14319) 2023-05-24 20:32:51 +05:30
data-management Update Ingestion section (#14023) 2023-05-19 09:42:27 -07:00
design Update Ingestion section (#14023) 2023-05-19 09:42:27 -07:00
development Doc: List supported values for Kafka `headerFormat` (#14316) 2023-05-22 15:41:07 -07:00
ingestion Update Ingestion section (#14023) 2023-05-19 09:42:27 -07:00
misc Update Ingestion section (#14023) 2023-05-19 09:42:27 -07:00
multi-stage-query docs: add line about write datasource perm for overlord api (#14114) 2023-05-19 14:56:24 -07:00
operations Update Ingestion section (#14023) 2023-05-19 09:42:27 -07:00
querying Return `RESOURCES` in `EXPLAIN PLAN` as an ordered collection (#14323) 2023-05-23 00:55:00 -05:00
tutorials Update Ingestion section (#14023) 2023-05-19 09:42:27 -07:00