diff --git a/docs/release-info/migr-front-coded-dict.md b/docs/release-info/migr-front-coded-dict.md index 1c825d4f6e3..4080d5f4709 100644 --- a/docs/release-info/migr-front-coded-dict.md +++ b/docs/release-info/migr-front-coded-dict.md @@ -47,7 +47,7 @@ You can specify the following optional properties: For example: -``` +```json "tuningConfig": { "indexSpec": { "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 Druid 26.0.0 introduced a new version of the front-coded dictionary, version 1, offering typically faster read speeds and smaller storage sizes.