cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurentiu Amitroaie (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CASSANDRA-13375) Cassandra v3.10 - UDA throws AssertionError when no records in select
Date Fri, 24 Mar 2017 08:59:42 GMT
Laurentiu Amitroaie created CASSANDRA-13375:
-----------------------------------------------

             Summary: Cassandra v3.10 - UDA throws AssertionError when no records in select

                 Key: CASSANDRA-13375
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-13375
             Project: Cassandra
          Issue Type: Bug
          Components: CQL
            Reporter: Laurentiu Amitroaie
         Attachments: aggregate_with_no_records.cql

If the aggregate function is used in a select which fetches no records there is a ServerError
reported. 

It seems the a bug in org.apache.cassandra.cql3.functions.UDAggregate, there is an  "assert
!needsInit;" done on compute. 

Attached is a file which creates a keyspace / table / data records and UDF/UDA to replicate
the issue. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message