mirror of https://github.com/apache/druid.git
Update after review
This commit is contained in:
parent
a17a2534f7
commit
58fc598cd1
|
@ -92,7 +92,7 @@ The request body takes the following properties:
|
|||
```json
|
||||
{
|
||||
"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"}]
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -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).
|
||||
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
|
||||
SELECT count(city) from druid.table where SCALAR_IN_ARRAY(city, ?)
|
||||
|
|
Loading…
Reference in New Issue