dcapwell commented on code in PR #4006: URL: https://github.com/apache/cassandra/pull/4006#discussion_r2019144322
########## test/unit/org/apache/cassandra/cql3/ast/AssignmentOperator.java: ########## @@ -59,10 +59,15 @@ public static EnumSet<Kind> supportsOperators(AbstractType<?> type, boolean isTr EnumSet<Kind> result = EnumSet.noneOf(Kind.class); if (type instanceof CollectionType && type.isMultiCell()) { - if (type instanceof SetType || type instanceof ListType) + if (type instanceof SetType) return EnumSet.of(Kind.ADD, Kind.SUBTRACT); + if (type instanceof ListType) Review Comment: `-=` is allowed but only for List, this does a read before write so the consistency is a function of the CL you used for the write... this isn't safe but is the current behavior. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For additional commands, e-mail: pr-h...@cassandra.apache.org