diff --git a/pkg/tsdb/grafana-postgresql-datasource/testdata/table/timestamp_convert_real.golden.jsonc b/pkg/tsdb/grafana-postgresql-datasource/testdata/table/timestamp_convert_real.golden.jsonc index 6548ddecde9..af23cf8b5bd 100644 --- a/pkg/tsdb/grafana-postgresql-datasource/testdata/table/timestamp_convert_real.golden.jsonc +++ b/pkg/tsdb/grafana-postgresql-datasource/testdata/table/timestamp_convert_real.golden.jsonc @@ -14,9 +14,9 @@ // | Labels: | Labels: | Labels: | Labels: | // | Type: []*time.Time | Type: []*time.Time | Type: []*float64 | Type: []*time.Time | // +--------------------------------------+-------------------------------+------------------+-----------------------------------+ -// | 2023-12-21 12:21:27 +0000 UTC | 2023-12-21 12:21:40 +0000 UTC | 1.7031613e+09 | 2023-12-21 12:21:52 +0000 UTC | -// | 2023-12-21 12:21:27.724 +0000 UTC | 2023-12-21 12:20:00 +0000 UTC | 1.7031612e+12 | 2023-12-21 12:21:52.522 +0000 UTC | -// | 2023-12-21 12:21:27.724919 +0000 UTC | 2023-12-21 12:20:00 +0000 UTC | 1.7031612e+18 | 2023-12-21 12:21:52.522 +0000 UTC | +// | 2023-12-21 12:22:24 +0000 UTC | 2023-12-21 12:21:40 +0000 UTC | 1.7031613e+09 | 2023-12-21 12:22:52 +0000 UTC | +// | 2023-12-21 12:20:33.408 +0000 UTC | 2023-12-21 12:20:00 +0000 UTC | 1.7031612e+12 | 2023-12-21 12:21:52.522 +0000 UTC | +// | 2023-12-21 12:20:41.050022 +0000 UTC | 2023-12-21 12:20:00 +0000 UTC | 1.7031612e+18 | 2023-12-21 12:21:52.522 +0000 UTC | // | null | null | null | null | // +--------------------------------------+-------------------------------+------------------+-----------------------------------+ // @@ -72,9 +72,9 @@ "data": { "values": [ [ - 1703161287000, - 1703161287724, - 1703161287724, + 1703161344000, + 1703161233408, + 1703161241050, null ], [ @@ -90,7 +90,7 @@ null ], [ - 1703161312000, + 1703161372000, 1703161312522, 1703161312522, null @@ -100,7 +100,7 @@ [ 0, 0, - 919000, + 22000, 0 ], null, diff --git a/pkg/tsdb/grafana-postgresql-datasource/testdata/table/timestamp_convert_real.sql b/pkg/tsdb/grafana-postgresql-datasource/testdata/table/timestamp_convert_real.sql index ef7e072bb67..b0d00ce9773 100644 --- a/pkg/tsdb/grafana-postgresql-datasource/testdata/table/timestamp_convert_real.sql +++ b/pkg/tsdb/grafana-postgresql-datasource/testdata/table/timestamp_convert_real.sql @@ -8,7 +8,7 @@ CREATE TEMPORARY TABLE tbl ( ); INSERT INTO tbl (reallyt, "time", n, timeend) VALUES -('2023-12-21T12:21:27 UTC', 1703161287, 1703161287, 1703161312), -('2023-12-21T12:21:27.724 UTC', 1703161287724, 1703161287724, 1703161312522), -('2023-12-21T12:21:27.724919 UTC', 1703161287724919000, 1703161287724919000, 1703161312522186000), +('2023-12-21T12:22:24', 1703161344, 1703161344, 1703161372), +('2023-12-21T12:20:33.408', 1703161233408, 1703161233408, 1703161312522), +('2023-12-21T12:20:41.050022', 1703161241050021888, 1703161241050021888, 1703161312522186000), (NULL, NULL, NULL, NULL); \ No newline at end of file