dcapwell commented on code in PR #4006:
URL: https://github.com/apache/cassandra/pull/4006#discussion_r2010631555
##########
src/java/org/apache/cassandra/cql3/Operation.java:
##########
@@ -374,8 +374,16 @@ public Operation prepare(TableMetadata metadata,
ColumnMetadata receiver, boolea
{
if (!(receiver.type instanceof CollectionType))
{
- if (!(receiver.type instanceof CounterColumnType))
- throw new InvalidRequestException(String.format("Invalid
operation (%s) for non counter column %s", toString(receiver), receiver.name));
+ if (canReadExistingState)
+ {
+ if (!(receiver.type instanceof NumberType<?>))
+ throw new
InvalidRequestException(String.format("Invalid operation (%s) for non-numeric
type %s", toString(receiver), receiver.name));
+ }
Review Comment:
new feature, `-=` now supports numeric types, just like `+=` does
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]