`DATE_BIN_GAPFILL` does not handle `month` or `year` intervals
alamb opened this issue · comments
https://docs.influxdata.com/influxdb/cloud-serverless/reference/sql/functions/time-and-date/#date_bin_gapfill incorrectly states that DATE_BIN_GAPFILL
supports month
or year
intervals
Reported on community slack: https://influxcommunity.slack.com/archives/C01EJ4HM90U/p1706519717019399
I'm having some issues with the DATE_BIN_GAPFILL function in SQL queries, on the online docs it mentions that the months interval is supported, however when using this in my query
DATE_BIN_GAPFILL(INTERVAL '1 month', time, '1970-01-01T00:00:00Z'::TIMESTAMP) AS time
I get an error bacl
INVALID_ARGUMENT: Internal error reading points from namespace org_table: Execution error: gap filling does not support month intervals
The documentation is incorrect in this case (I double checked and the feature isn't supported, it is tracked in https://github.com/influxdata/influxdb_iox/issues/9958)