[
https://issues.apache.org/jira/browse/CASSANDRA-15730?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17085580#comment-17085580
]
Michael Semb Wever commented on CASSANDRA-15730:
------------------------------------------------
||branch||circleci||jenkins||
|[trunk_15730|https://github.com/apache/cassandra/compare/trunk...BrynCooke:CASSANDRA-15730-trunk]|[circleci|https://circleci.com/gh/BrynCooke/workflows/cassandra/tree/CASSANDRA-15730-trunk]|[!https://ci-cassandra.apache.org/job/Cassandra-devbranch/64/badge/icon!|https://ci-cassandra.apache.org/blue/organizations/jenkins/Cassandra-devbranch/detail/Cassandra-devbranch/64]|
> Batch statement preparation fails if multiple tables and parameters are used
> ----------------------------------------------------------------------------
>
> Key: CASSANDRA-15730
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15730
> Project: Cassandra
> Issue Type: Bug
> Reporter: Bryn Cooke
> Priority: Normal
> Labels: pull-request-available
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
> Batch statement preparation fails with an assertion error if multiple tables
> and parameters are used.
> {{BEGIN BATCH }}
> {{ UPDATE tbl1 SET v1 = 1 WHERE k1 = ?}}
> {{ UPDATE tbl2 SET v2 = 2 WHERE k2 = ?}}
> {{APPLY BATCH}}
> The logic for affectsMultipleTables
> [here|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/cql3/statements/BatchStatement.java#L144]
> looks inverted
> This later causes an assertion failure
> [here|https://github.com/apache/cassandra/blob/24c8a21c1c131abd89c6b646343ff098d1b3263b/src/java/org/apache/cassandra/cql3/VariableSpecifications.java#L75]
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]