Pavel Solodovnikov
21d758020a
cql3: change current*() CQL functions to be non-pure
...
These include the following:
* `currenttimestamp()`
* `currenttime()`
* `currentdate()`
* `currenttimeuuid()`
Previously, they were incorrectly marked as pure, meaning
that the function is executed at "prepare" step.
For functions that possibly depend on timing and random seed,
this is clearly a bug. Cassandra doesn't have a notion of pure
functions, so they are lazily evaluated.
Make Scylla to match Cassandra behavior for these functions.
Add a unit-test for a fix (excluding `currentdate()` function,
because there is no way to use synthetic clock with query
processor and sleeping for a whole day to demonstrate correct
behavior is clearly not an option).
Tests: unit(dev, debug)
Signed-off-by: Pavel Solodovnikov <pa.solodovnikov@scylladb.com >
2021-08-01 12:17:23 +03:00
..
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-08 16:53:38 +03:00
2021-07-28 13:30:32 +03:00
2021-06-06 19:18:49 +03:00
2021-07-27 20:06:53 +03:00
2021-07-08 16:53:38 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-07 15:58:35 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-02 19:02:14 +02:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-14 17:19:02 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-19 14:42:38 +02:00
2021-06-07 15:58:35 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-07 23:21:51 +03:00
2021-06-06 19:18:49 +03:00
2021-08-01 12:17:23 +03:00
2021-06-06 19:18:49 +03:00
2021-07-11 12:53:02 +03:00
2021-07-08 16:53:38 +03:00
2021-07-08 17:52:34 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-08 17:52:34 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-08 16:53:38 +03:00
2021-07-29 05:12:36 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-14 17:19:02 +03:00
2021-06-06 19:18:49 +03:00
2021-06-07 21:41:08 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-20 14:08:06 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-08 16:53:38 +03:00
2021-07-27 09:29:20 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-14 17:19:02 +03:00
2021-07-08 16:53:38 +03:00
2021-07-28 11:22:59 +03:00
2021-07-28 13:30:32 +03:00
2021-07-08 16:53:38 +03:00
2021-07-26 17:27:03 +02:00
2021-06-06 19:18:49 +03:00
2021-07-28 13:28:51 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-14 17:19:02 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-28 13:28:51 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-20 10:35:12 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-27 20:06:53 +03:00
2021-06-06 19:18:49 +03:00
2021-07-08 16:53:38 +03:00
2021-06-06 19:18:49 +03:00
2021-07-21 16:12:55 +02:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-28 18:45:39 +03:00
2021-07-08 16:53:38 +03:00
2021-07-28 18:45:39 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-28 18:45:39 +03:00
2021-07-02 19:02:14 +02:00
2021-07-08 16:53:38 +03:00
2021-07-08 16:53:38 +03:00
2021-07-28 14:14:22 +03:00
2021-07-21 16:45:30 +03:00
2021-07-01 19:16:11 +03:00
2021-07-24 14:33:33 +03:00
2021-06-06 19:18:49 +03:00
2021-07-16 17:25:07 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-28 13:30:32 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-28 13:19:24 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2020-10-21 11:14:44 +03:00
2021-07-28 13:20:32 +03:00
2021-07-14 17:19:02 +03:00
2021-07-07 23:21:51 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-07-20 14:19:17 +02:00
2021-06-06 19:18:49 +03:00