[
https://issues.apache.org/jira/browse/CASSANDRA-17913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Capwell updated CASSANDRA-17913:
--------------------------------------
Bug Category: Parent values: Correctness(12982)Level 1 values:
Unrecoverable Corruption / Loss(13161)
Complexity: Normal
Discovered By: Fuzz Test
Fix Version/s: 4.x
Severity: Normal
Status: Open (was: Triage Needed)
> 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
> Priority: Normal
> Fix For: 4.x
>
>
> The following test fails caused by the fact we make reversed a type that
> wraps the underline type
> {code}
> @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}
> 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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]