Update after review

This commit is contained in:
Katya Macedo 2024-12-20 15:54:03 -06:00
parent a17a2534f7
commit 58fc598cd1
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ The request body takes the following properties:
```json ```json
{ {
"query": "SELECT \"arrayDouble\" FROM \"array_example\" WHERE ARRAY_CONTAINS(\"arrayDouble\", ?)", "query": "SELECT \"arrayDouble\" FROM \"array_example\" WHERE ARRAY_CONTAINS(\"arrayDouble\", ?)",
"parameters": [{"type": "ARRAY", "value": [999, null, 5.5]}] "parameters": [{"type": "ARRAY", "value": [999.0, null, 5.5]},{"type":"VARCHAR","value":"bar"}]
} }
``` ```

View File

@ -432,7 +432,7 @@ SELECT arrayColumn from druid.table where ARRAY_CONTAINS(arrayColumn, ?)
``` ```
You can replace an IN filter with many values by dynamically passing a parameter into [SCALAR_IN_ARRAY](sql-functions.md#scalar_in_array). You can replace an IN filter with many values by dynamically passing a parameter into [SCALAR_IN_ARRAY](sql-functions.md#scalar_in_array).
For sample java queries, see [Dynamic parameters](../api-reference/sql-jdbc.md#dynamic-parameters). For example Java queries, see [Dynamic parameters](../api-reference/sql-jdbc.md#dynamic-parameters).
```sql ```sql
SELECT count(city) from druid.table where SCALAR_IN_ARRAY(city, ?) SELECT count(city) from druid.table where SCALAR_IN_ARRAY(city, ?)