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

cql-pytest/lwt_test: test LWT UPDATE when partition/clustering ranges are empty #13130

Merged
merged 2 commits into from
Mar 13, 2023

Conversation

cvybhu
Copy link
Contributor

@cvybhu cvybhu commented Mar 9, 2023

Adds two test cases which test what happens when we perform an LWT UPDATE, but the partition/clustering key has 0 possible values. This can happen e.g when a column is supposed to be equal to two different values (c = 0 AND c = 1).

Empty partition ranges work properly, empty clustering range currently causes a crash (#13129).
I added tests for both of these cases.

Add a test case which performs an LWT UPDATE, but the partition key
has 0 possible values, because it's supposed to be equal to two
different values.
Such queries used to cause problems in the past.

Signed-off-by: Jan Ciolek <jan.ciolek@scylladb.com>
Add a test case which performs an LWT UPDATE, but the clustering key
has 0 possible values, because it's supposed to be equal to two
different values.

This currently causes a crash, see scylladb#13129

Signed-off-by: Jan Ciolek <jan.ciolek@scylladb.com>
@cvybhu cvybhu requested a review from nyh as a code owner March 9, 2023 14:49
@scylladb-promoter
Copy link
Contributor

@scylladb-promoter scylladb-promoter merged commit e72b85e into scylladb:master Mar 13, 2023
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