vtlim commented on code in PR #16964:
URL: https://github.com/apache/druid/pull/16964#discussion_r1733203090


##########
docs/querying/sql.md:
##########
@@ -398,6 +398,17 @@ at execution time. To use dynamic parameters, replace any 
literal in the query w
 corresponding parameter value when you execute the query. Parameters are bound 
to the placeholders in the order in
 which they are passed. Parameters are supported in both the [HTTP 
POST](../api-reference/sql-api.md) and [JDBC](../api-reference/sql-jdbc.md) 
APIs.
 
+Druid supports double and null values in arrays for dynamic queries. For 
example:
+
+```sql
+{
+   "query": "SELECT doubleArrayColumn from druid.table where ARRAY_CONTAINS(?, 
 doubleArrayColumn)",
+   "Parameters":[
+      {"type":"ARRAY", "value":[-25.7, null, 36.85]}

Review Comment:
   Suggestion to make it a little more readable
   ```suggestion
         {
           "type": "ARRAY",
           "value": [-25.7, null, 36.85]
         }
   ```



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