-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Impossible to set list element to null using scylla_timeuuid_index #6828
Comments
@haaawk what about DELETE v[scylla_timeuuid_list_index(...)] FROM tb? |
Haven't tried. Will check it out and let you know. |
but that's sort of expected. I think the grammar was changed only for SET to support scylla_timeuuid_list_index. |
We could (should?) support it. |
It looks like a regression. Trying to do the same as above and run it though sstableloader hits the same error. |
elcallio
pushed a commit
to elcallio/scylla
that referenced
this issue
Jul 14, 2020
Fixes scylladb#6828 When using the scylla list index from UUID extension, null values were not handled properly causing throws from underlying layer.
Backported to 4.0, 4.1, 4.2. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Having the following table:
It is ok to run
update tb set v[1]=null where pk = 1 and ck = 1
but running
update tb set v[scylla_timeuuid_list_index(4bec89c0-c52b-11ea-92db-000000000000)] = null where pk = 1 and ck = 2
causes
ServerError: std::get: wrong index for variant
On the same time, running
update tb set v[scylla_timeuuid_list_index(4bec89c0-c52b-11ea-92db-000000000000)] = 3 where pk = 1 and ck = 2
works just fine.
The text was updated successfully, but these errors were encountered: