jacek-lewandowski commented on code in PR #2195:
URL: https://github.com/apache/cassandra/pull/2195#discussion_r1132071739
##########
src/java/org/apache/cassandra/cql3/statements/TransactionStatement.java:
##########
@@ -207,12 +204,9 @@ public ResultSet.ResultMetadata getResultMetadata()
TxnNamedRead createNamedRead(NamedSelect namedSelect, QueryOptions
options, ClientState state)
{
SelectStatement select = namedSelect.select;
- ReadQuery readQuery = select.getQuery(options, 0);
- checkTrue(readQuery instanceof SinglePartitionReadQuery.Group,
ILLEGAL_RANGE_QUERY_MESSAGE, select.asCQL(options, state));
-
// We reject reads from both LET and SELECT that do not specify a
single row.
@SuppressWarnings("unchecked")
- SinglePartitionReadQuery.Group<SinglePartitionReadCommand> selectQuery
= (SinglePartitionReadQuery.Group<SinglePartitionReadCommand>) readQuery;
+ SinglePartitionReadQuery.Group<SinglePartitionReadCommand> selectQuery
= (SinglePartitionReadQuery.Group<SinglePartitionReadCommand>)
select.getQuery(options, 0);
Review Comment:
In this and the other case, the statement at this point is guaranteed to not
be partition range query. It has been verified during preparation.
--
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]