Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-13375

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Duplicate
    • Fix Version/s: 3.11.0
    • Component/s: Legacy/CQL
    • Labels:
      None
    • Severity:
      Normal
    • Since Version:

      Description

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

      It seems the bug is 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.

        Attachments

        1. aggregate_with_no_records.cql
          1 kB
          Laurentiu Amitroaie

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                laurentiu.amitroaie Laurentiu Amitroaie
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: