This is an automated email from the ASF dual-hosted git repository.

techdocsmith pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new acd973273f5 Docs: adds MSQ examples to front coded dict. migration 
(#17236)
acd973273f5 is described below

commit acd973273f5c8a38adfaf11b172b969636f426b7
Author: Charles Smith <techdocsm...@gmail.com>
AuthorDate: Thu Oct 3 16:33:34 2024 -0700

    Docs: adds MSQ examples to front coded dict. migration (#17236)
    
    * add msq example
    
    * adjust json formatting
---
 docs/release-info/migr-front-coded-dict.md | 35 +++++++++++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)

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.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org

Reply via email to