mirror of https://github.com/apache/druid.git
Update the example of the dimensionsSpec (#5293)
The example was outdated with the dateSpec
This commit is contained in:
parent
53e3c7d1b2
commit
cc32640642
|
@ -8,16 +8,28 @@ Druid supports filtering specially spatially indexed columns based on an origin
|
||||||
In any of the data specs, there is the option of providing spatial dimensions. For example, for a JSON data spec, spatial dimensions can be specified as follows:
|
In any of the data specs, there is the option of providing spatial dimensions. For example, for a JSON data spec, spatial dimensions can be specified as follows:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"dataSpec" : {
|
{
|
||||||
"format": "JSON",
|
"type": "hadoop",
|
||||||
"dimensions": <some_dims>,
|
"dataSchema": {
|
||||||
"spatialDimensions": [
|
"dataSource": "DatasourceName",
|
||||||
{
|
"parser": {
|
||||||
|
"type": "string",
|
||||||
|
"parseSpec": {
|
||||||
|
"format": "json",
|
||||||
|
"timestampSpec": {
|
||||||
|
"column": "timestamp",
|
||||||
|
"format": "auto"
|
||||||
|
},
|
||||||
|
"dimensionsSpec": {
|
||||||
|
"dimensions": [],
|
||||||
|
"spatialDimensions": [{
|
||||||
"dimName": "coordinates",
|
"dimName": "coordinates",
|
||||||
"dims": ["lat", "long"]
|
"dims": ["lat", "long"]
|
||||||
},
|
}]
|
||||||
...
|
}
|
||||||
]
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue