Merge pull request #773 from influxdata/flux/count-empty-tables

Count rows in empty tables
pull/777/head
Scott Anderson 2020-02-21 09:48:16 -07:00 committed by GitHub
commit ecba0b32b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

@ -21,6 +21,18 @@ _**Output data type:** Integer_
count(column: "_value") count(column: "_value")
``` ```
{{% note %}}
#### Count empty tables
`count()` returns `0` for empty tables.
To keep empty tables in your data, set the following parameters for the following functions:
| Function | Parameter |
|:-------- |:--------- |
| [filter()](/v2.0/reference/flux/stdlib/built-in/transformations/filter/) | `onEmpty: "keep"` |
| [window()](/v2.0/reference/flux/stdlib/built-in/transformations/window/) | `createEmpty: true` |
| [aggregateWindow()](/v2.0/reference/flux/stdlib/built-in/transformations/aggregates/aggregatewindow/) | `createEmpty: true` |
{{% /note %}}
## Parameters ## Parameters
### column ### column