This is an automated email from the ASF dual-hosted git repository.
techdocsmith pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git
The following commit(s) were added to refs/heads/master by this push:
new 8885805bb3 Update filters.md (#14917)
8885805bb3 is described below
commit 8885805bb397f4b12647ffeecb7f8e532b838ed1
Author: benkrug <[email protected]>
AuthorDate: Mon Aug 28 15:29:00 2023 -0700
Update filters.md (#14917)
---
docs/querying/filters.md | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/docs/querying/filters.md b/docs/querying/filters.md
index 8c94a70767..431a29b556 100644
--- a/docs/querying/filters.md
+++ b/docs/querying/filters.md
@@ -80,19 +80,19 @@ Druid's SQL planner uses the equality filter by default
instead of selector filt
### Example: equivalent of `WHERE someColumn = 'hello'`
```json
-{ "type": "equality", "column": "someColumn", "matchValueType": "STRING",
"matchValue": "hello" }
+{ "type": "equals", "column": "someColumn", "matchValueType": "STRING",
"matchValue": "hello" }
```
### Example: equivalent of `WHERE someNumericColumn = 1.23`
```json
-{ "type": "equality", "column": "someNumericColumn", "matchValueType":
"DOUBLE", "matchValue": 1.23 }
+{ "type": "equals", "column": "someNumericColumn", "matchValueType": "DOUBLE",
"matchValue": 1.23 }
```
### Example: equivalent of `WHERE someArrayColumn = ARRAY[1, 2, 3]`
```json
-{ "type": "equality", "column": "someArrayColumn", "matchValueType":
"ARRAY<LONG>", "matchValue": [1, 2, 3] }
+{ "type": "equals", "column": "someArrayColumn", "matchValueType":
"ARRAY<LONG>", "matchValue": [1, 2, 3] }
```
@@ -160,8 +160,8 @@ Note that the column comparison filter converts all values
to strings prior to c
{
"type": "and",
"fields": [
- { "type": "equality", "column": "someColumn", "matchValue": "a",
"matchValueType": "STRING" },
- { "type": "equality", "column": "otherColumn", "matchValue": 1234,
"matchValueType": "LONG" },
+ { "type": "equals", "column": "someColumn", "matchValue": "a",
"matchValueType": "STRING" },
+ { "type": "equals", "column": "otherColumn", "matchValue": 1234,
"matchValueType": "LONG" },
{ "type": "null", "column": "anotherColumn" }
]
}
@@ -180,8 +180,8 @@ Note that the column comparison filter converts all values
to strings prior to c
{
"type": "or",
"fields": [
- { "type": "equality", "column": "someColumn", "matchValue": "a",
"matchValueType": "STRING" },
- { "type": "equality", "column": "otherColumn", "matchValue": 1234,
"matchValueType": "LONG" },
+ { "type": "equals", "column": "someColumn", "matchValue": "a",
"matchValueType": "STRING" },
+ { "type": "equals", "column": "otherColumn", "matchValue": 1234,
"matchValueType": "LONG" },
{ "type": "null", "column": "anotherColumn" }
]
}
@@ -709,7 +709,7 @@ All filters return true if any one of the dimension values
is satisfies the filt
Given a multi-value STRING row with values `['a', 'b', 'c']`, a filter such as
```json
-{ "type": "equality", "column": "someMultiValueColumn", "matchValueType":
"STRING", "matchValue": "b" }
+{ "type": "equals", "column": "someMultiValueColumn", "matchValueType":
"STRING", "matchValue": "b" }
```
will successfully match the entire row. This can produce sometimes unintuitive
behavior when coupled with the implicit UNNEST functionality of Druid
[GroupBy](./groupbyquery.md) and [TopN](./topnquery.md) queries.
@@ -724,13 +724,13 @@ Given a multi-value STRING row with values `['a', 'b',
'c']`, and filter such as
"type": "and",
"fields": [
{
- "type": "equality",
+ "type": "equals",
"column": "someMultiValueColumn",
"matchValueType": "STRING",
"matchValue": "a"
},
{
- "type": "equality",
+ "type": "equals",
"column": "someMultiValueColumn",
"matchValueType": "STRING",
"matchValue": "b"
@@ -754,7 +754,7 @@ the "regex" filter) the numeric column values will be
converted to strings durin
```json
{
- "type": "equality",
+ "type": "equals",
"dimension": "myFloatColumn",
"matchValueType": "FLOAT",
"value": 10.1
@@ -811,7 +811,7 @@ If you want to interpret the timestamp with a specific
format, timezone, or loca
```json
{
- "type": "equality",
+ "type": "equals",
"dimension": "__time",
"matchValueType": "LONG",
"value": 124457387532
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]