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

Add warning to rewritten queries with WHERE #909

Merged
merged 5 commits into from Nov 11, 2022

Conversation

rukai
Copy link
Member

@rukai rukai commented Nov 10, 2022

Supercedes #779

There has been a fair bit of confusion over the behavior of these tables with WHERE clauses and these warnings should make it obvious to the user where shotovers handling falls short.
I also made the final warnings list include all warnings from extra queries that were sent in order to generate the final query.

Currently this new warning produces a lot of noise in our integration tests as the drivers do use a WHERE clause for system.local.
I think the correct fix for this noise would be to specifically handle certain WHERE clauses that drivers are known to make.
Probably want to delay merging this until we have a fix for that though.

I fixed the noise by adding specific logic to ignore the common FROM system.local WHERE key = 'local' thing that drivers keep inexplicably doing.
e.g. here is the PR that adds the query to scylla-rust-driver scylladb/scylla-rust-driver#223

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.

None yet

3 participants