skuldshao commented on code in PR #18027: URL: https://github.com/apache/druid/pull/18027#discussion_r2148951111
########## docs/api-reference/sql-ingestion-api.md: ########## @@ -101,22 +101,23 @@ The `/druid/v2/sql/task` endpoint accepts the following: ### Sample request The following example shows a query that fetches data from an external JSON source and inserts it into a table named `wikipedia`. +The example specifies two query context parameters: + +- `maxNumTasks=3`: Limits the maximum number of parallel tasks to 3. +- `finalizeAggregations=false`: Prevents Druid from performing final data aggregation during loading. It's useful if you want to work with intermediate data states or control aggregation later. For more information, see [Rollup](../multi-stage-query/concepts.md#rollup). Review Comment: ```suggestion - `finalizeAggregations=false`: Ensures Druid saving intermediate data aggregation during loading. It's useful if you want to work with intermediate data states or control aggregation later. For more information, see [Rollup](../multi-stage-query/concepts.md#rollup). ``` ########## docs/api-reference/sql-api.md: ########## @@ -229,6 +234,20 @@ Content-Length: 192 </TabItem> </Tabs> +You can also specify query-level context parameters directly within the SQL query string using the `SET` command. For more details, see [SET statements](../querying/sql.md#set). Review Comment: ```suggestion You can also specify query-level context parameters directly within the SQL query string using the `SET` command. For more details, see [SET statements](../querying/sql.md#set-statements). ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
