Sven Klemm
c488fcdbc9
Allow bucketing by month, year, century in time_bucket
...
This patch allows bucketing by month for time_bucket with date,
timestamp or timestamptz. When bucketing by month the interval
must only contain month components. When using origin together
with bucketing by month only the year and month components are
honoured.
To bucket by month we get the year and month of a date and convert
that to the nth month since origin. This allows us to treat month
bucketing similar to int bucketing. During this process we ignore
the day component and therefore only support bucketing by full months.
2022-08-22 19:07:32 +02:00
..
2019-08-30 21:00:12 +02:00
2022-06-17 14:31:57 -03:00
2021-06-17 22:52:29 +02:00
2022-05-18 21:35:30 +02:00
2022-06-13 15:45:27 -03:00
2022-04-20 17:28:47 +02:00
2020-06-22 12:08:17 +02:00
2022-07-22 16:59:00 +02:00
2020-06-01 12:39:35 +02:00
2022-05-17 21:47:39 +02:00
2020-06-22 12:08:17 +02:00
2020-08-26 09:44:20 +02:00
2020-09-04 23:27:22 +02:00
2021-06-01 20:21:06 +02:00
2022-08-17 10:23:40 +03:00
2020-09-04 23:27:22 +02:00
2021-02-06 14:51:04 +01:00
2022-08-15 12:13:51 -04:00
2021-10-30 17:41:34 +02:00
2022-05-31 11:05:27 +02:00
2020-09-28 12:15:42 +02:00
2022-08-01 10:52:03 +03:00
2019-01-13 23:30:22 +01:00
2022-04-20 17:28:47 +02:00
2021-06-01 20:21:06 +02:00
2019-07-03 19:04:32 +02:00
2021-10-12 19:01:20 -03:00
2022-07-05 17:36:05 +02:00
2022-01-24 23:21:02 +01:00
2019-01-13 23:30:22 +01:00
2019-01-13 23:30:22 +01:00
2021-10-03 15:20:05 +02:00
2019-01-13 23:30:22 +01:00
2019-01-13 23:30:22 +01:00
2019-01-13 23:30:22 +01:00
2022-03-03 12:21:07 +01:00
2019-01-13 23:30:22 +01:00
2022-08-08 09:39:30 -03:00
2020-05-27 17:31:09 +02:00
2022-08-08 10:14:10 -03:00
2021-11-02 14:13:07 +01:00
2021-06-01 20:21:06 +02:00
2021-06-17 15:16:03 +02:00
2020-06-01 12:39:35 +02:00
2020-09-28 12:15:42 +02:00
2021-03-25 19:44:15 +01:00
2020-10-16 08:55:30 -04:00
2022-01-17 11:45:12 -03:00
2019-08-21 14:37:29 -04:00
2020-04-14 23:12:15 +02:00
2020-04-14 23:12:15 +02:00
2021-06-01 20:21:06 +02:00
2019-01-13 23:30:22 +01:00
2021-06-01 20:21:06 +02:00
2022-08-02 11:38:32 +02:00
2020-06-01 12:39:35 +02:00
2021-01-29 21:45:48 +01:00
2019-01-13 23:30:22 +01:00
2022-07-28 11:20:08 +02:00
2021-06-17 15:16:03 +02:00
2019-01-13 23:30:22 +01:00
2021-07-12 14:08:05 +02:00
2021-06-01 20:21:06 +02:00
2021-01-29 21:45:48 +01:00
2020-06-22 12:08:17 +02:00
2021-06-01 20:21:06 +02:00
2020-10-02 08:52:20 +02:00
2020-04-14 23:12:15 +02:00
2022-06-14 15:04:11 +05:30
2022-03-07 16:38:40 -03:00
2021-06-01 20:21:06 +02:00
2022-02-09 14:11:16 +05:30
2019-01-13 23:30:22 +01:00
2020-04-14 23:12:15 +02:00
2022-05-19 17:37:09 +02:00
2022-05-25 15:28:13 -04:00
2022-02-28 16:53:01 +01:00
2022-08-22 19:07:32 +02:00
2022-04-20 16:11:24 +02:00
2022-04-19 05:16:15 +02:00
2022-01-17 17:36:33 +01:00
2021-01-29 21:45:48 +01:00
2022-06-14 15:04:11 +05:30
2019-01-13 23:30:22 +01:00
2021-10-09 00:36:10 +02:00
2021-10-09 00:36:10 +02:00
2020-12-07 18:10:26 +01:00