mirror of https://github.com/apache/druid.git
some docs were missing before, hopfully this is more clear
This commit is contained in:
parent
ce5de2b7a7
commit
0357dc2cd8
|
@ -146,23 +146,23 @@ SELECT COUNT(*) FROM ( SELECT DIM1, DIM2, DIM3 FROM <datasource> GROUP BY DIM1,
|
||||||
|
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
Determine the number of distinct categories items are assigned to.
|
Determine the number of distinct countries people are living in or have come from.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"type": "cardinality",
|
"type": "cardinality",
|
||||||
"name": "distinct_values",
|
"name": "distinct_countries",
|
||||||
"fieldNames": [ "main_category", "secondary_category" ]
|
"fieldNames": [ "coutry_of_origin", "country_of_residence" ]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Determine the number of distinct are assigned to.
|
Determine the number of distinct people (i.e. combinations of first and last name).
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"type": "cardinality",
|
"type": "cardinality",
|
||||||
"name": "distinct_values",
|
"name": "distinct_people",
|
||||||
"fieldNames": [ "", "secondary_category" ],
|
"fieldNames": [ "first_name", "last_name" ],
|
||||||
"byRow" : true
|
"byRow" : true
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue