Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cql3: fix fetching clustering key columns for filtering
When a column is not present in the select clause, but used for filtering, it usually needs to be fetched from replicas. Sometimes it can be avoided, e.g. if primary key columns form a valid prefix - then, they will be optimized out before filtering itself. However, clustering key prefix can only be qualified for this optimization if the whole partition key is restricted - otherwise the clustering columns still need to be present for filtering. This commit also fixes tests in cql_query_test suite, because they now expect more values - columns fetched for filtering will be present as well (only internally, the clients receive only data they asked for). Fixes #4541 Message-Id: <f08ebae5562d570ece2bb7ee6c84e647345dfe48.1560410018.git.sarna@scylladb.com> (cherry picked from commit adeea0a)
- Loading branch information