Merge pull request #1130 from influxdata/flux/group-warn
Add warning to 'group()' about sort orderpull/1131/head
commit
cb0309e738
|
@ -32,6 +32,19 @@ group(columns: ["_time"], mode:"except")
|
||||||
group()
|
group()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{{% warn %}}
|
||||||
|
#### Group does not guarantee sort order
|
||||||
|
`group()` does not guarantee the sort order of output records.
|
||||||
|
To ensure data is sorted correctly, use [`sort()`](/v2.0/reference/flux/stdlib/built-in/transformations/sort/)
|
||||||
|
after `group()`.
|
||||||
|
|
||||||
|
```js
|
||||||
|
data
|
||||||
|
|> group()
|
||||||
|
|> sort(columns: ["_time"])
|
||||||
|
```
|
||||||
|
{{% /warn %}}
|
||||||
|
|
||||||
## Parameters
|
## Parameters
|
||||||
|
|
||||||
### columns
|
### columns
|
||||||
|
|
Loading…
Reference in New Issue