[
https://issues.apache.org/jira/browse/CASSANDRA-18240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jacek Lewandowski reassigned CASSANDRA-18240:
---------------------------------------------
Assignee: Jacek Lewandowski
> Using SELECT COUNT(*) FROM... LIMIT 1 in the returning section results in
> ClassCastException
> --------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-18240
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18240
> Project: Cassandra
> Issue Type: Bug
> Components: Accord
> Reporter: Jacek Lewandowski
> Assignee: Jacek Lewandowski
> Priority: Normal
>
> {noformat}
> cqlsh>
> BEGIN TRANSACTION
> LET row1 = (SELECT * FROM ks.tbl1 WHERE k = 5);
> SELECT COUNT(*) FROM ks.tbl1 LIMIT 1;
> IF row1 IS NULL THEN
> INSERT INTO ks.tbl1 (k, v) VALUES (5, 10);
> END IF
> COMMIT TRANSACTION;
> NoHostAvailable: ('Unable to complete the operation against any hosts',
> {<Host: 127.0.0.1:9042 datacenter1>: <Error from server: code=0000 [Server
> error] message="java.lang.ClassCastException:
> org.apache.cassandra.db.PartitionRangeReadCommand cannot be cast to
> org.apache.cassandra.db.SinglePartitionReadQuery$Group">})
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]