clarify granularity docs (#7977)

This commit is contained in:
Clint Wylie 2019-06-27 08:51:22 -07:00 committed by Fangjin Yang
parent 7a5bc5ffcd
commit 10d6b0318d
1 changed files with 4 additions and 5 deletions

View File

@ -176,11 +176,10 @@ If you change the granularity to `none`, you will get the same results as settin
} ]
```
Having a query granularity smaller than the ingestion granularity doesn't make sense,
because information about that smaller granularity is not present in the indexed data.
So, if the query granularity is smaller than the ingestion granularity, druid produces
results that are equivalent to having set the query granularity to the ingestion granularity.
See `queryGranularity` in [Ingestion Spec](../ingestion/ingestion-spec.html#granularityspec).
Having a query time `granularity` that is smaller than the `queryGranularity` parameter set at
[ingestion time]((../ingestion/ingestion-spec.html#granularityspec)) is unreasonable because information about that
smaller granularity is not present in the indexed data. So, if the query time granularity is smaller than the ingestion
time query granularity, Druid produces results that are equivalent to having set `granularity` to `queryGranularity`.
If you change the granularity to `all`, you will get everything aggregated in 1 bucket,