influxdb/influxdb_iox/tests/query_tests
Martin Hilton b1c695d5a2
fix(influxql): fill count aggregates with 0 by default (#8284)
* chore: update expected output for `COUNT` aggregates with `FILL(null)`

See #8232

* fix(influxql): fill count aggregates with 0 by default

When gap-filling a COUNT aggregate any missing rows should be filled
with 0, unless otherwise directed by a FILL clause. To do this the
projection on the aggregate plan is modiefied to coalesce any COUNT
fields with 0 unless a FILL value has been specified in the query.

* chore: add more tests

* chore: add explanation of COUNT gap filling with multiple measurements

* fix: update test introduced with merge

---------

Co-authored-by: Stuart Carnie <stuart.carnie@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-07-21 16:31:10 +00:00
..
cases fix(influxql): fill count aggregates with 0 by default (#8284) 2023-07-21 16:31:10 +00:00
data feat(influxql): PERCENTILE function (#8187) 2023-07-11 05:33:16 +00:00
cases.rs feat(influxql): PERCENTILE function (#8187) 2023-07-11 05:33:16 +00:00
framework.rs test: Add an invalid test configuration checker 2023-05-17 16:58:50 -04:00
mod.rs fix: Rename query_tests2 to query_tests 2023-05-09 22:10:46 -04:00
setups.rs feat(influxql): PERCENTILE function (#8187) 2023-07-11 05:33:16 +00:00
sql_errors.rs test: turn interval 0 test on after upgrading DF with the fix (#7938) 2023-06-06 15:50:54 +00:00