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
Adding a UDT field of type duration doesn't check whether it's allowed #12913
Comments
… clustering key Having values of the duration type is not allowed for clustering columns, because duration can't be ordered. This is correctly validated when creating a table but do not validated when we alter the type. Fixes scylladb#12913
@cvybhu do we need a backport to 5.4? |
Most likely, the bug most likely has been there for a long while. |
Backported to 5.4 and 5.2. |
5.2 backport dequeued, it breaks the build. |
Re-did 5.2 backport. |
Having values of the
duration
type is not allowed for clustering columns, becauseduration
can't be ordered (is 30 days less than 1 month?).This is correctly validated when creating a table:
But when adding a new field to a user defined type, there is no check whether this UDT is used in some clustering key.
The text was updated successfully, but these errors were encountered: