You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Benjamin Lerer (Jira)" <ji...@apache.org> on 2024/04/22 12:59:00 UTC
[jira] [Commented] (CASSANDRA-19574) LIKE_MATCHES should be an equality
[ https://issues.apache.org/jira/browse/CASSANDRA-19574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17839648#comment-17839648 ]
Benjamin Lerer commented on CASSANDRA-19574:
--------------------------------------------
I fact all the LIKE variants {{isSatifiedBy}} implementations are wrong because {{Like}} is case insensitive whereas all of those methods are case sensitive.
We simply never discovered it before because that code is never used as we do not support filtering or LWT conditions using {{LIKE}}.
> LIKE_MATCHES should be an equality
> ----------------------------------
>
> Key: CASSANDRA-19574
> URL: https://issues.apache.org/jira/browse/CASSANDRA-19574
> Project: Cassandra
> Issue Type: Bug
> Components: CQL/Semantics
> Reporter: Berenguer Blasi
> Assignee: Berenguer Blasi
> Priority: Normal
> Fix For: 4.0.x, 4.1.x, 5.0.x, 5.x
>
>
> The operator LIKE_MATCHES is [currently|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/cql3/Operator.java#L245] coded as a 'contains' instead of an 'equality'
--
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