Skip to content

Commit

Permalink
document new filters and stuff (#14760)
Browse files Browse the repository at this point in the history
  • Loading branch information
clintropolis authored Aug 8, 2023
1 parent 667e4da commit e57f880
Show file tree
Hide file tree
Showing 4 changed files with 523 additions and 220 deletions.
2 changes: 1 addition & 1 deletion docs/ingestion/ingestion-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Treat `__time` as a millisecond timestamp: the number of milliseconds since Jan
### `dimensionsSpec`

The `dimensionsSpec` is located in `dataSchema``dimensionsSpec` and is responsible for
configuring [dimensions](./schema-model.md#dimensions). An example `dimensionsSpec` is:
configuring [dimensions](./schema-model.md#dimensions).

You can either manually specify the dimensions or take advantage of schema auto-discovery where you allow Druid to infer all or some of the schema for your data. This means that you don't have to explicitly specify your dimensions and their type.

Expand Down
2 changes: 2 additions & 0 deletions docs/ingestion/schema-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ native boolean types, Druid ingests these values as strings if `druid.expression
the [array functions](../querying/sql-array-functions.md) or [UNNEST](../querying/sql-functions.md#unnest). Nested
columns can be queried with the [JSON functions](../querying/sql-json-functions.md).

We also highly recommend setting `druid.generic.useDefaultValueForNull=false` when using these columns since it also enables out of the box `ARRAY` type filtering. If not set to `false`, setting `sqlUseBoundsAndSelectors` to `false` on the [SQL query context](../querying/sql-query-context.md) can enable `ARRAY` filtering instead.

Mixed type columns are stored in the _least_ restrictive type that can represent all values in the column. For example:

- Mixed numeric columns are `DOUBLE`
Expand Down
Loading

0 comments on commit e57f880

Please sign in to comment.