Jan Ciolek
f76a1cd4bf
cql3: Reorganize orderings code
...
Reorganized the code that handles column ordering (ASC or DESC).
I feel that it's now clearer and easier to understand.
Added an enum that describes column ordering.
It has two possible values: ascending or descending.
It used to be a bool that was sometimes called 'reversed',
which could mean multiple things.
Instead of column.type->is_reversed() != <ordering bool>
there is now a function called are_column_select_results_reversed.
Split checking if ordering is reversed and verifying whether it's correct into two functions.
Before all of this was done by is_reversed()
This is a preparation to later allow skipping ORDER BY restrictions on some columns.
Adding this to the existing code caused it to get quite complex,
but this new version is better suited for the task.
The diff is a bit messy because I moved all ordering functions to one place,
it's better to read select_statement.cc lines 1495-1651 directly.
Signed-off-by: Jan Ciolek <jan.ciolek@scylladb.com >
2021-12-09 12:06:42 +01:00
..
2021-12-09 12:06:42 +01:00
2021-08-27 14:07:18 +03:00
2021-06-13 14:45:40 +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-10-27 17:02:00 +03:00
2021-06-24 20:59:27 +03:00
2021-11-17 15:20:37 +02:00
2021-11-17 15:20:37 +02:00
2021-06-06 19:18:49 +03:00
2021-06-07 15:58:35 +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-06-07 15:58:35 +03:00
2021-06-07 15:58:35 +03:00
2021-06-07 15:58:35 +03:00
2021-07-30 01:22:39 +03:00
2021-11-04 15:56:45 +01: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-09-12 11:21:33 +03:00
2021-09-12 11:21:33 +03:00
2021-06-06 19:18:49 +03:00
2021-06-07 15:58:35 +03:00
2021-11-04 15:56:45 +01:00
2021-08-26 15:53:27 +03:00
2021-09-13 19:03:58 +02:00
2021-06-07 15:58:35 +03:00
2021-08-11 13:41:58 +02:00
2021-06-07 15:58:35 +03:00
2021-10-18 12:13:25 +03:00
2021-09-07 10:37:25 +03:00
2021-06-06 19:18:49 +03:00
2021-10-10 18:16:50 +03:00
2021-06-06 19:18:49 +03:00
2021-08-27 14:07:18 +03:00
2021-06-24 20:59:27 +03:00
2021-10-05 12:58:55 +02:00
2021-09-07 10:37:25 +03:00
2021-11-19 17:33:10 +01:00
2021-06-07 15:58:35 +03:00
2021-11-04 15:56:45 +01:00
2021-06-07 15:58:35 +03:00
2021-06-07 15:58:35 +03:00
2021-06-06 19:18:49 +03:00
2021-08-13 11:16:52 +02:00
2021-08-13 11:16:52 +02:00
2021-08-13 11:16:47 +02:00
2021-06-06 19:18:49 +03:00
2021-06-07 15:58:35 +03:00
2021-06-07 15:58:35 +03:00
2021-08-27 14:07:18 +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-06-07 15:58:35 +03:00
2021-08-27 14:07:18 +03:00
2021-06-07 15:58:35 +03:00
2021-06-06 19:18:49 +03:00
2021-06-07 15:58:35 +03:00
2021-06-07 15:58:35 +03:00
2021-06-07 15:58:35 +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-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-10-18 12:18:07 +03:00
2021-10-18 12:13:25 +03:00
2021-10-05 12:58:55 +02:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-10-05 12:58:55 +02:00
2021-06-06 19:18:49 +03:00
2021-10-05 12:58:55 +02:00
2021-06-06 19:18:49 +03:00
2021-10-05 12:58:55 +02:00
2021-06-06 19:18:49 +03:00
2021-11-30 16:39:39 +02:00
2021-07-24 14:33:33 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-08-31 10:45:41 -04:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-11-17 15:21:36 +02: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-10-05 12:58:55 +02:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-12-09 12:06:42 +01:00
2021-10-28 20:55:09 +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-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-06-06 19:18:49 +03:00
2021-11-04 15:56:45 +01:00
2021-11-04 15:56:45 +01:00
2021-06-07 15:58:35 +03:00
2021-06-07 15:58:35 +03:00