Nadav Har'El
5c4129c027
secondary index: fix wrong results returned in certain cases
...
The current secondary-index search code, in
indexed_table_select_statement::do_execute(), begins by fetching a list
of partitions, and then the content of these partitions from the base
table. However, in some cases, when the table has clustering columns and
not searching on the first one of them, doing this work in partition
granularity is wrong, and yields wrong results as demonstrated in
issue #3405 .
So in this patch, we recognize the cases where we need to work in
clustering row granularity, and in those cases use the new functions
introduced in the previous patches - find_index_clustering_rows() and
the execute() variant taking a list of primary-keys of rows.
Fixes #3405 .
Signed-off-by: Nadav Har'El <nyh@scylladb.com >
(cherry picked from commit 1b29dd44f7 )
2018-05-27 15:45:51 +03:00
..
2017-04-12 12:24:03 -04:00
2018-03-11 18:02:23 +02:00
2017-05-21 12:26:15 +03:00
2018-02-14 14:15:59 -05:00
2018-05-16 23:41:53 +03:00
2017-05-21 12:26:15 +03:00
2017-05-21 12:26:15 +03:00
2017-05-21 12:26:15 +03:00
2018-02-07 10:11:46 +00:00
2017-05-21 12:26:15 +03:00
2017-05-21 12:26:15 +03:00
2017-05-21 12:26:15 +03:00
2018-02-14 14:15:58 -05:00
2017-12-06 14:39:40 -05:00
2017-06-24 18:06:11 +02:00
2017-05-21 12:26:15 +03:00
2016-04-08 08:12:47 +03:00
2018-02-07 10:11:46 +00:00
2018-02-07 10:11:46 +00:00
2018-02-07 10:11:46 +00:00
2016-05-31 09:09:21 +03:00
2018-05-17 00:34:39 +03:00
2018-05-17 00:34:39 +03:00
2018-03-26 12:37:35 +03:00
2018-03-26 12:37:35 +03:00
2018-03-26 12:37:35 +03:00
2018-03-26 12:37:35 +03:00
2018-03-26 12:37:35 +03:00
2017-05-21 12:26:15 +03:00
2017-05-21 12:26:15 +03:00
2018-05-16 20:22:58 +03:00
2017-05-21 12:26:15 +03:00
2017-11-26 12:29:09 +02:00
2017-05-04 15:59:49 +02:00
2018-05-17 00:34:39 +03:00
2018-05-17 00:34:39 +03:00
2017-05-21 12:26:15 +03:00
2017-05-21 12:26:15 +03:00
2017-11-27 12:14:24 -05:00
2017-05-21 12:26:15 +03:00
2017-05-21 12:26:15 +03:00
2017-05-21 12:26:15 +03:00
2017-05-21 12:26:15 +03:00
2017-05-21 12:26:15 +03:00
2017-05-21 12:26:15 +03:00
2017-11-27 12:14:24 -05:00
2018-03-26 12:37:35 +03:00
2017-05-21 12:26:15 +03:00
2018-05-17 00:30:18 +03:00
2016-04-08 08:12:47 +03:00
2018-05-17 00:30:18 +03:00
2018-05-17 00:30:18 +03:00
2018-02-07 10:11:46 +00:00
2016-05-11 16:02:22 +03:00
2018-03-26 12:37:35 +03:00
2018-02-14 14:15:59 -05:00
2018-02-14 14:15:57 -05:00
2018-03-26 12:37:35 +03:00
2018-02-14 14:15:57 -05:00
2018-03-13 10:34:34 +02:00
2017-05-21 12:26:15 +03:00
2017-05-08 16:33:17 +03:00
2018-03-01 12:06:59 -05:00
2018-03-01 12:06:59 -05:00
2017-05-08 16:33:17 +03:00
2018-02-07 10:11:46 +00:00
2018-02-07 10:11:46 +00:00
2016-04-08 08:12:47 +03:00
2017-11-27 12:14:24 -05:00
2018-03-26 12:37:35 +03:00
2017-05-21 12:26:15 +03:00
2018-05-10 13:22:49 +03:00
2018-03-26 12:37:35 +03:00
2018-03-26 12:37:35 +03:00
2018-05-27 15:45:51 +03:00
2018-05-27 15:45:24 +03:00
2017-05-10 19:54:42 +02:00
2018-02-13 11:37:27 +00:00
2017-05-21 12:26:15 +03:00
2017-05-17 11:25:52 +03:00
2017-05-04 15:59:49 +02:00
2017-05-21 12:26:15 +03:00
2017-05-21 12:26:15 +03:00