Skip to content

Commit

Permalink
more example more better
Browse files Browse the repository at this point in the history
  • Loading branch information
clintropolis committed Dec 7, 2023
1 parent 21a50e2 commit d8f46ca
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/querying/filters.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,19 @@ The `arrayContainsElement` filter checks if an `ARRAY` contains a specific eleme

```

### Example: equivalent of `WHERE ARRAY_OVERLAPS(someNumericArrayColumn, ARRAY[1, 2, 3])`

```json
{
"type": "or",
"fields": [
{ "type": "arrayContainsElement", "column": "someNumericArrayColumn", "elementMatchValueType": "LONG", "elementMatchValue": 1 },
{ "type": "arrayContainsElement", "column": "someNumericArrayColumn", "elementMatchValueType": "LONG", "elementMatchValue": 2 },
{ "type": "arrayContainsElement", "column": "someNumericArrayColumn", "elementMatchValueType": "LONG", "elementMatchValue": 3 }
]
}
```

## Interval filter

The Interval filter enables range filtering on columns that contain long millisecond values, with the boundaries specified as ISO 8601 time intervals. It is suitable for the `__time` column, long metric columns, and dimensions with values that can be parsed as long milliseconds.
Expand Down

0 comments on commit d8f46ca

Please sign in to comment.