Piotr Wojtczak
2150c0f7a2
cql: Check for timestamp correctness in USING TIMESTAMP statements
...
In certain CQL statements it's possible to provide a custom timestamp via the USING TIMESTAMP clause. Those values are accepted in microseconds, however, there's no limit on the timestamp (apart from type size constraint) and providing a timestamp in a different unit like nanoseconds can lead to creating an entry with a timestamp way ahead in the future, thus compromising the table.
To avoid this, this change introduces a sanity check for modification and batch statements that raises an error when a timestamp of more than 3 days into the future is provided.
Fixes #5619
Closes #7475
2020-11-01 11:01:24 +02:00
..
2020-09-21 16:32:53 +03:00
2020-08-15 20:26:02 +03:00
2020-08-04 16:40:00 -07: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-09-03 21:13:21 +03:00
2020-09-21 16:32:53 +03:00
2020-10-26 09:39:27 +02:00
2020-10-15 19:25:24 +03:00
2020-07-21 10:33:49 -07:00
2020-09-29 12:16:58 +03:00
2020-07-07 23:08:09 +02:00
2020-11-01 11:01:24 +02:00
2020-08-26 20:44:11 +03:00
2020-10-11 17:44:30 +03:00
2020-10-30 08:06:04 +02:00
2020-08-15 20:26:02 +03:00
2020-08-17 16:44:14 +02:00
2020-09-10 08:45:07 +02: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-10-08 11:57:06 +03:00
2020-10-30 08:06:04 +02:00
2020-07-14 16:29:49 +03:00
2020-07-06 11:24:12 +03:00
2020-08-04 18:44:29 +02: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-10-13 12:32:13 +03:00
2020-10-13 12:32:13 +03:00
2020-09-28 10:53:48 +03:00
2020-10-19 10:23:31 +03:00
2020-10-16 15:24:28 +03:00
2020-09-28 11:27:23 +03:00
2020-10-26 11:54:42 +02:00
2020-10-11 16:05:02 +03:00
2020-07-23 16:49:35 +03:00
2020-10-16 15:24:37 +03:00
2020-07-07 09:09:40 +02:00
2020-10-12 12:09:21 +02:00
2020-08-10 18:37:42 +03:00
2020-10-15 12:32:18 +02:00
2020-09-28 10:53:56 +03:00
2020-08-31 11:33:14 +03:00
2020-09-23 20:55:11 +03:00
2020-10-29 15:25:02 +01: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
2020-10-11 17:36:08 +03:00
2020-10-08 11:57:06 +03: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
2020-07-21 10:33:49 -07:00
2020-08-11 10:37:34 +08:00
2020-10-02 14:03:01 +02:00
2020-08-03 17:32:49 +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-08-20 14:53:07 +02:00