[
https://issues.apache.org/jira/browse/CASSANDRA-19950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17886800#comment-17886800
]
Caleb Rackliffe edited comment on CASSANDRA-19950 at 10/4/24 8:39 PM:
----------------------------------------------------------------------
|[patch|https://github.com/apache/cassandra/pull/3599]| [^ci_summary.html]|
The couple of test failures are unrelated/inconsequential.
was (Author: maedhroz):
|[patch|https://github.com/apache/cassandra/pull/3599]|CI|
> Relation#toRestriction() may not handle ReversedType properly
> -------------------------------------------------------------
>
> Key: CASSANDRA-19950
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19950
> Project: Cassandra
> Issue Type: Bug
> Components: CQL/Semantics
> Reporter: Caleb Rackliffe
> Assignee: Caleb Rackliffe
> Priority: Normal
> Fix For: 5.x
>
> Attachments: ci_summary.html
>
>
> {{o.a.c.cql3.Relation#toRestriction()}} uses {{ClusterMetadata#type}}
> directly but this type can be {{ReverseType}}, which seems to bypass most of
> the checks. Checks like {{isMultiCell()}} can be hard to spot as clustering
> keys don't allow multi-cell, but then we do checks like:
> {noformat}
> checkFalse(column.type instanceof ListType, "Indexes on list entries
> (%s[index] = value) are not supported.", column.name);
> {noformat}
> If the column is reversed clustering then this check always returns
> {{false}}, even if it's a reverse list!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]