grafana/pkg/tsdb/postgres
idafurjes 180b1973e0
SQL: Fix SQL dataframe resampling (fill mode + time intervals) (#36937)
* Refactor resample logic

* Adjust test to have one more timestamp out of range

* adjust test + ensure filling

* revert flag flip

* Undo logic - should be timeseries only

* change data calculation based on previous interval

* fix the logics

* fix typo

* fix resample start time, to reuse what sql api returned

* calculate the start point with from truncate by interval

Co-authored-by: Will Browne <will.browne@grafana.com>
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
Co-authored-by: Ying WANG <ying.wang@grafana.com>
2021-07-29 08:38:41 +02:00
..
locker_test.go Postgres: allow providing TLS/SSL certificates as text in addition to file paths (#30353) 2021-02-23 22:10:55 +01:00
locker.go Postgres: allow providing TLS/SSL certificates as text in addition to file paths (#30353) 2021-02-23 22:10:55 +01:00
macros_test.go Postgres/MySQL/MSSQL: Fix concurrent map writes panic (#35510) 2021-06-11 14:56:29 +02:00
macros.go Postgres/MySQL/MSSQL: Fix concurrent map writes panic (#35510) 2021-06-11 14:56:29 +02:00
postgres_test.go SQL: Fix SQL dataframe resampling (fill mode + time intervals) (#36937) 2021-07-29 08:38:41 +02:00
postgres.go Fix Postgres query handling null values for smallint (#36648) 2021-07-13 09:36:24 +02:00
tlsmanager_test.go Postgres: allow providing TLS/SSL certificates as text in addition to file paths (#30353) 2021-02-23 22:10:55 +01:00
tlsmanager.go Postgres: allow providing TLS/SSL certificates as text in addition to file paths (#30353) 2021-02-23 22:10:55 +01:00