[
https://issues.apache.org/jira/browse/CASSANDRA-20050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17895899#comment-17895899
]
Stefan Miklosovic commented on CASSANDRA-20050:
-----------------------------------------------
[CASSANDRA-20050-5.0|https://github.com/instaclustr/cassandra/tree/CASSANDRA-20050-5.0]
{noformat}
java17_pre-commit_tests
✓ j17_build 3m 41s
✓ j17_cqlsh_dtests_py311 6m 32s
✓ j17_cqlsh_dtests_py311_vnode 6m 29s
✓ j17_cqlsh_dtests_py38 6m 18s
✓ j17_cqlsh_dtests_py38_vnode 6m 15s
✓ j17_cqlshlib_cython_tests 7m 42s
✓ j17_cqlshlib_tests 6m 38s
✓ j17_dtests 35m 36s
✓ j17_dtests_latest 35m 45s
✓ j17_dtests_vnode 35m 16s
✓ j17_jvm_dtests 23m 29s
✓ j17_jvm_dtests_latest_vnode 19m 13s
✓ j17_unit_tests 15m 52s
✓ j17_unit_tests_repeat 9m 29s
✓ j17_utests_latest 16m 59s
✓ j17_utests_latest_repeat 14m 8s
✓ j17_utests_oa 16m 46s
✓ j17_utests_oa_repeat 9m 28s
{noformat}
[java17_pre-commit_tests|https://app.circleci.com/pipelines/github/instaclustr/cassandra/4940/workflows/5d4e150f-2b52-4a26-8672-5f1dbb7a0d1b]
> 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]