Dejan Mircevski
d79c2cab63
cql3: Use correct comparator in timeuuid min/max
...
The min/max aggregators use aggregate_type_for comparators, and the
aggregate_type_for<timeuuid> is regular uuid. But that yields wrong
results; timeuuids should be compared as timestamps.
Fix it by changing aggregate_type_for<timeuuid> from uuid to timeuuid,
so aggregators can distinguish betwen the two. Then specialize the
aggregation utilities for timeuuid.
Add a cql-pytest and change some unit tests, which relied on naive
uuid comparators.
Fixes #7729 .
Tests: unit (dev, debug)
Signed-off-by: Dejan Mircevski <dejan@scylladb.com >
Closes #7910
2021-01-13 11:07:29 +02:00
..
2021-01-13 11:07:29 +02:00
2020-06-10 15:49:51 +03:00
2020-08-15 20:26:02 +03:00
2020-11-16 22:32:32 -05:00
2020-07-16 16:38:48 +03:00
2020-06-25 15:37:23 -07:00
2020-08-06 15:41:31 +03:00
2020-09-23 20:55:15 +03:00
2020-03-05 11:38:11 +03:00
2020-09-03 21:13:21 +03:00
2020-06-16 16:15:23 +02:00
2020-09-21 16:32:53 +03:00
2020-12-01 18:01:23 +02:00
2020-03-10 13:13:48 -07:00
2020-11-02 18:02:01 +02:00
2020-10-15 19:25:24 +03:00
2020-07-21 10:33:49 -07:00
2020-05-07 16:19:56 +03:00
2020-11-12 12:36:16 +01:00
2020-05-28 11:34:35 +03:00
2020-12-04 15:09:30 +03:00
2020-03-23 23:19:21 +03:00
2021-01-13 11:07:29 +02:00
2020-10-19 15:40:55 -04:00
2020-03-16 20:27:45 +03:00
2020-07-07 23:08:09 +02:00
2020-12-06 19:34:13 +02:00
2020-08-26 20:44:11 +03:00
2021-01-03 13:58:09 +02:00
2020-10-30 08:06:04 +02:00
2020-05-26 20:46:45 +03:00
2020-08-15 20:26:02 +03:00
2020-06-03 14:44:00 +02:00
2020-06-18 14:18:21 +03:00
2020-11-12 12:36:13 +01:00
2020-10-19 15:38:11 -04:00
2020-09-28 11:27:23 +03:00
2020-06-18 15:13:56 +03:00
2020-09-28 11:27:23 +03:00
2020-11-11 14:20:23 +02:00
2020-04-05 12:46:04 +03:00
2020-12-15 16:03:18 +03:00
2020-10-30 08:06:04 +02:00
2020-03-16 20:26:34 +03:00
2020-07-14 16:29:49 +03:00
2020-03-04 13:28:16 +02:00
2020-07-06 11:24:12 +03:00
2020-10-19 15:38:11 -04:00
2020-05-13 09:37:39 +03:00
2020-03-05 11:38:11 +03:00
2020-05-26 20:49:58 +03:00
2020-09-08 15:59:25 +03:00
2020-09-28 10:53:56 +03:00
2020-10-12 15:56:56 +03:00
2020-12-08 15:55:04 +03:00
2020-10-13 12:32:13 +03:00
2020-09-28 10:53:48 +03:00
2020-12-18 16:33:27 +01:00
2020-12-07 16:47:52 +02:00
2020-09-28 11:27:23 +03:00
2020-10-26 11:54:42 +02:00
2020-12-22 11:22:19 +02:00
2020-07-23 16:49:35 +03:00
2020-04-22 18:24:54 +02:00
2020-10-16 15:24:37 +03:00
2020-10-19 15:38:11 -04:00
2020-12-08 19:19:55 +02:00
2020-06-18 12:38:31 +03:00
2020-12-28 18:26:48 +02:00
2020-12-16 14:46:48 -05:00
2020-03-05 11:38:11 +03:00
2020-12-28 13:17:45 -03:00
2021-01-04 10:24:40 +01:00
2020-09-23 20:55:11 +03:00
2020-03-25 14:19:30 +01:00
2020-12-16 15:00:29 -05:00
2020-04-12 17:48:44 +03:00
2020-10-14 16:45:21 +03:00
2020-10-30 08:03:44 +02:00
2020-09-23 20:55:12 +03:00
2021-01-13 11:07:29 +02:00
2020-11-09 19:57:40 +02:00
2020-11-09 19:57:40 +02:00
2020-09-28 11:27:47 +03:00
2020-09-23 20:55:13 +03:00
2020-09-23 20:55:15 +03:00
2021-01-04 16:55:06 -03:00
2020-08-11 10:37:34 +08:00
2020-12-22 10:35:15 +02:00
2020-11-03 21:30:11 +03:00
2020-08-03 17:32:49 +02:00
2020-03-05 11:38:11 +03:00
2020-11-02 16:47:32 +02:00
2020-09-07 18:11:21 +03:00
2020-08-16 13:49:55 +03:00
2020-10-21 11:14:44 +03:00
2020-10-19 10:23:31 +03:00
2020-08-18 14:31:04 +03:00
2020-03-16 20:27:45 +03:00
2020-03-16 20:27:45 +03:00
2020-08-20 14:53:07 +02:00