[ 
https://issues.apache.org/jira/browse/CASSANDRA-20050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17895285#comment-17895285
 ] 

Stefan Miklosovic commented on CASSANDRA-20050:
-----------------------------------------------

Not sure if I got the PR right. A review would indeed help to decide that.

> User types 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: 5.0.x, 5.x
>
>          Time Spent: 10m
>  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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to