Docs: adds MSQ examples to front coded dict. migration (#17236) (#17239)

This commit is contained in:
Charles Smith 2024-10-04 10:33:33 -07:00 committed by GitHub
parent 0ffdbaa6eb
commit a939dd44fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 34 additions and 1 deletions

View File

@ -47,7 +47,7 @@ You can specify the following optional properties:
For example: For example:
``` ```json
"tuningConfig": { "tuningConfig": {
"indexSpec": { "indexSpec": {
"stringDictionaryEncoding": { "stringDictionaryEncoding": {
@ -59,6 +59,39 @@ For example:
} }
``` ```
For SQL based ingestion, you can add the `indexSpec` to your query context.
In the Web Console, select *Edit context* from the context from the *Engine:* menu and enter the `indexSpec`. For example:
```json
{
...
"indexSpec": {
"stringDictionaryEncoding": {
"type": "frontCoded",
"bucketSize": 4,
"formatVersion": 1
}
}
}
```
For API calls to the SQL-based ingestion API, include the `indexSpec` in the context in the request payload. For example:
```json
{
"query": ...
"context": {
"maxNumTasks": 3
"indexSpec": {
"stringDictionaryEncoding": {
"type": "frontCoded",
"bucketSize": 4,
"formatVersion": 1}
}
}
}
```
## Upgrade from Druid 25.0.0 ## Upgrade from Druid 25.0.0
Druid 26.0.0 introduced a new version of the front-coded dictionary, version 1, offering typically faster read speeds and smaller storage sizes. Druid 26.0.0 introduced a new version of the front-coded dictionary, version 1, offering typically faster read speeds and smaller storage sizes.