You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Caleb Rackliffe (Jira)" <ji...@apache.org> on 2024/10/04 20:40:00 UTC

[jira] [Comment Edited] (CASSANDRA-19950) Relation#toRestriction() may not handle ReversedType properly

    [ 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: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org