Skip to content

Commit

Permalink
Update after review
Browse files Browse the repository at this point in the history
  • Loading branch information
ektravel committed Dec 20, 2024
1 parent a17a253 commit 58fc598
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api-reference/sql-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"}]
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/querying/sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -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, ?)
Expand Down

0 comments on commit 58fc598

Please sign in to comment.