[
https://issues.apache.org/jira/browse/CASSANDRA-20050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17895665#comment-17895665
]
Stefan Miklosovic commented on CASSANDRA-20050:
-----------------------------------------------
[CASSANDRA-20050-4.0|https://github.com/instaclustr/cassandra/tree/CASSANDRA-20050-4.0]
{noformat}
java11_pre-commit_tests
✓ j11_build 1m 34s
✓ j11_cqlsh-dtests-py2-no-vnodes 5m 36s
✓ j11_cqlsh-dtests-py2-with-vnodes 5m 56s
✓ j11_cqlsh_dtests_py3 5m 31s
✓ j11_cqlsh_dtests_py311 5m 40s
✓ j11_cqlsh_dtests_py311_vnode 6m 31s
✓ j11_cqlsh_dtests_py38 5m 56s
✓ j11_cqlsh_dtests_py38_vnode 5m 55s
✓ j11_cqlsh_dtests_py3_vnode 5m 29s
✓ j11_cqlshlib_tests 5m 56s
✓ j11_dtests 34m 42s
✓ j11_dtests_vnode 37m 4s
✓ j11_jvm_dtests 13m 22s
✓ j11_unit_tests 8m 5s
✓ j11_unit_tests_repeat 8m 44s{noformat}
[java11_pre-commit_tests|https://app.circleci.com/pipelines/github/instaclustr/cassandra/4930/workflows/560a8e28-6c1f-412d-85bf-eba77cb1ca5b]
> 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: 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: [email protected]
For additional commands, e-mail: [email protected]