Skip to content

Commit

Permalink
Docs - granularities link back to segmentGranularity (apache#11672)
Browse files Browse the repository at this point in the history
* Update granularities.md

Link-back to the ingestion spec as well as Native queries plus examples.

* Update docs/querying/granularities.md

Co-authored-by: Charles Smith <[email protected]>

* Update docs/querying/granularities.md

Co-authored-by: Charles Smith <[email protected]>
  • Loading branch information
petermarshallio and techdocsmith authored Sep 10, 2021
1 parent 6779c46 commit f16cd2a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/querying/granularities.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ sidebar_label: "Granularities"
> language. For information about time functions available in SQL, refer to the
> [SQL documentation](sql.md#time-functions).
The granularity field determines how data gets bucketed across the time dimension, or how it gets aggregated by hour, day, minute, etc.
Granularity determines how to bucket data across the time dimension, or how to aggregate data by hour, day, minute, etc.

It can be specified either as a string for simple granularities or as an object for arbitrary granularities.
For example, use time granularities in [native queries](querying.md) to bucket results by time, and in the `dataSchema` \\ [`granularitySpec`](../ingestion/ingestion-spec.md#granularityspec) section of ingestion specifications to segment incoming data.

You can specify a time period as a [simple](#simple-granularities) string, as a [duration](#duration-granularities) in milliseconds, or as an arbitrary ISO8601 [period](#period-granularities).

### Simple Granularities

Expand Down

0 comments on commit f16cd2a

Please sign in to comment.