[ 
https://issues.apache.org/jira/browse/CASSANDRA-18240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jacek Lewandowski updated CASSANDRA-18240:
------------------------------------------
    Test and Documentation Plan: regression
                         Status: Patch Available  (was: Open)

https://github.com/apache/cassandra/pull/2164

> 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: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to