aho135 commented on code in PR #20314:
URL: https://github.com/apache/druid/pull/20314#discussion_r4028662249


##########
docs/querying/sql-query-context.md:
##########
@@ -56,6 +56,7 @@ The table below lists the query context parameters you can 
use with Druid SQL.
 |`inFunctionThreshold`| At or beyond this threshold number of values, Druid 
converts SQL `IN` to [`SCALAR_IN_ARRAY`](sql-functions.md#scalar_in_array). A 
threshold of 0 forces this conversion in all cases. A threshold of 
`Integer.MAX_VALUE` disables this conversion. The converted function is 
eligible for fewer planning-time optimizations, which speeds up planning, but 
may prevent certain planning-time optimizations.| `100`|
 |`inFunctionExprThreshold`|At or beyond this threshold number of values, SQL 
`IN` is eligible for execution using the native function `scalar_in_array` 
rather than an <code>&#124;&#124;</code> of `==`, even if the number of values 
is below `inFunctionThreshold`. This property only affects translation of SQL 
`IN` to a [native expression](math-expr.md). It doesn't affect translation of 
SQL `IN` to a [native filter](filters.md). This property is provided for 
backwards compatibility purposes, and may be removed in a future release.|`2`|
 |`inSubQueryThreshold`|At or beyond this threshold number of values, Druid 
converts SQL `IN` to `JOIN` on an inline table. `inFunctionThreshold` takes 
priority over this setting. A threshold of 0 forces usage of an inline table in 
all cases where the size of a SQL `IN` is larger than `inFunctionThreshold`. A 
threshold of `2147483647` disables the rewrite of SQL `IN` to `JOIN`. 
|`2147483647`|
+|`maxPlanningTimeMs`|Maximum wall-clock time, in milliseconds, allowed for 
planning this query on the Broker. When planning exceeds this budget, planning 
is aborted and the query fails with an HTTP 504 `Query timeout` error. Use this 
to guard against pathological queries, such as one with a very large `IN` 
filter, whose planning time can spike. A value of `0` disables the timeout. 
Defaults to the value of the `druid.sql.planner.maxPlanningTimeMs` runtime 
property.|`0` (disabled)|

Review Comment:
   A negative value gets treated the same as 0 (disabled). I updated the docs 
to reflect this



-- 
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]

Reply via email to