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

Brandon Williams commented on CASSANDRA-17913:
----------------------------------------------

Doublechecked with circle and also repeated the new tests:

||Branch||CI||
|[4.0|https://github.com/driftx/cassandra/tree/CASSANDRA-17913-4.0]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/973/workflows/fd8f4eb8-478f-4bd2-9ab6-0ae2f5041197],
 
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/973/workflows/9c320e3e-f6f2-4743-9e5c-d220f99b6fd4]|
|[4.1|https://github.com/driftx/cassandra/tree/CASSANDRA-17913-4.1]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/972/workflows/67ae6f03-237a-4292-bad6-50587342216a],
 
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/972/workflows/d36492c2-dfe7-4742-8174-c13a1fda247b]|
|[trunk|https://github.com/driftx/cassandra/tree/CASSANDRA-17913-trunk]|[j8|https://app.circleci.com/pipelines/github/driftx/cassandra/971/workflows/639a4f14-64f5-4583-8908-9a759f51459b],
 
[j11|https://app.circleci.com/pipelines/github/driftx/cassandra/971/workflows/f0ccbda0-2f3c-4823-9516-7747a69861b8]|

No related failures, +1.

> Nested selection of reversed collections fails
> ----------------------------------------------
>
>                 Key: CASSANDRA-17913
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17913
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Consistency/Coordination, CQL/Semantics, Legacy/Local 
> Write-Read Paths
>            Reporter: David Capwell
>            Assignee: Maciej Sokol
>            Priority: Normal
>             Fix For: 4.0.x, 4.1.x, 5.x
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The following test fails caused by the fact we make reversed a type that 
> wraps the underline type
> {code:java}
> @Test
>     public void testMapsReversed() throws Throwable
>     {
>         createTable("CREATE TABLE %s (" +
>                     "   k int, " +
>                     "   c frozen<map<text, int>>, " +
>                     "   v int, " +
>                     "   PRIMARY KEY(k, c)" +
>                     ") WITH CLUSTERING ORDER BY (c DESC)");
>         execute("SELECT c['testing'] FROM %s");
>     }
> {code}
> With the error
> {code:java}
> org.apache.cassandra.exceptions.InvalidRequestException: Invalid element 
> selection: c is of type frozen<map<text, int>> is not a collection
> {code}
> When you look in a debugger you see that the real type is 
> ReversedType(MapType(…)), so the current checks fail.
> {+}Additional information for newcomers{+}:
>  * The problem impact element selection as well as range selection that where 
> introduced in CASSANDRA-7396 as part of 4.0. So the patch will need to be 
> done for 4.0.
>  * The checks that needs to be modified is in 
> {{Selectable.WithElementSelection}} and {{Selectable.WithSliceSelection}}
>  * The unit tests should be added to {{CollectionsTest}}



--
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