Update the example of the dimensionsSpec (#5293)

The example was outdated with the dateSpec
This commit is contained in:
Fokko Driesprong 2018-01-24 20:28:54 +01:00 committed by Slim
parent 53e3c7d1b2
commit cc32640642
1 changed files with 22 additions and 10 deletions

View File

@ -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:
```json
"dataSpec" : {
"format": "JSON",
"dimensions": <some_dims>,
"spatialDimensions": [
{
"dimName": "coordinates",
"dims": ["lat", "long"]
},
...
]
{
"type": "hadoop",
"dataSchema": {
"dataSource": "DatasourceName",
"parser": {
"type": "string",
"parseSpec": {
"format": "json",
"timestampSpec": {
"column": "timestamp",
"format": "auto"
},
"dimensionsSpec": {
"dimensions": [],
"spatialDimensions": [{
"dimName": "coordinates",
"dims": ["lat", "long"]
}]
}
}
}
}
}
```