Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schema: correctly filtering and sorting on clustering columns. #37

Merged
merged 1 commit into from
Mar 26, 2019

Conversation

dahankzter
Copy link
Contributor

@dahankzter dahankzter commented Mar 19, 2019

This PR adjusts the queries we execute on clustering keys. We used to try to restrict all the clustering keys to create ranges but this does not work. Only the last clustering key can be restricted in this way the others need to use EQ restrictions.

We should eventually ensure that we create all possible permutations of these queries. This PR only makes a small effort use some of the space available.

For more details see:
https://www.datastax.com/dev/blog/a-deep-look-to-the-cql-where-clause

Fixes: #36

schema.go Show resolved Hide resolved
schema.go Show resolved Hide resolved
@dahankzter dahankzter merged commit 79b761e into master Mar 26, 2019
@penberg penberg deleted the invalid_range_queries branch December 11, 2019 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants