clintropolis commented on code in PR #17894: URL: https://github.com/apache/druid/pull/17894#discussion_r2053418141
########## docs/querying/sql.md: ########## @@ -391,6 +391,26 @@ like `100` (denoting an integer), `100.0` (denoting a floating point value), or timestamps can be written like `TIMESTAMP '2000-01-01 00:00:00'`. Literal intervals, used for time arithmetic, can be written like `INTERVAL '1' HOUR`, `INTERVAL '1 02:03' DAY TO MINUTE`, `INTERVAL '1-2' YEAR TO MONTH`, and so on. +## SET statements + +Druid SQL over HTTP supports including 0 or more `SET` statements separated by `;` preceding the statement to execute +in order to assign [SQL query context parameter values](../querying/sql-query-context.md). Review Comment: reworked this a bit, i think is clearer now ########## docs/querying/sql-query-context.md: ########## @@ -60,19 +60,31 @@ For more information, see [Overriding default query context values](../configura ## Set the query context -You can configure query context parameters in the `context` object of the [JSON API](../api-reference/sql-api.md) or as a [JDBC connection properties object](../api-reference/sql-jdbc.md). +You can configure query context parameters in the `context` object or as part of the `query` string with [`SET` Review Comment: reworked for clarity -- 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]
