You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Stefan Miklosovic (Jira)" <ji...@apache.org> on 2024/11/06 09:24:00 UTC

[jira] [Updated] (CASSANDRA-20050) User types and vectors as clustering keys in descending order are not supported but ascending are

     [ https://issues.apache.org/jira/browse/CASSANDRA-20050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Miklosovic updated CASSANDRA-20050:
------------------------------------------
    Summary: User types and vectors as clustering keys in descending order are not supported but ascending are  (was: User types as clustering keys in descending order are not supported but ascending are)

> User types and vectors as clustering keys in descending order are not supported but ascending are
> -------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-20050
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20050
>             Project: Cassandra
>          Issue Type: Bug
>          Components: CQL/Semantics, Feature/UDT
>            Reporter: Stefan Miklosovic
>            Assignee: Stefan Miklosovic
>            Priority: Normal
>             Fix For: 4.0.x, 4.1.x, 5.0.x, 5.x
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> This works:
> {code}
> cassandra@cqlsh:ks> CREATE TABLE tbl (pk int, ck frozen<foo>, PRIMARY KEY(pk, ck)) WITH CLUSTERING ORDER BY (ck ASC);
> cassandra@cqlsh:ks> INSERT INTO ks.tbl (pk, ck) VALUES ( 1, {a: 1}) 
> {code}
> But this does not:
> {code}
> cassandra@cqlsh:ks> CREATE TABLE tbl (pk int, ck frozen<foo>, PRIMARY KEY(pk, ck)) WITH CLUSTERING ORDER BY (ck DESC);
> cassandra@cqlsh:ks> INSERT INTO ks.tbl (pk, ck) VALUES ( 1, {a: 1})  ;
> InvalidRequest: Error from server: code=2200 [Invalid query] message="Invalid user type literal for ck of type frozen<foo>"
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org