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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Duplicate
    • 3.11.0
    • Legacy/CQL
    • None
    • Normal

    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

              Unassigned Unassigned
              laurentiu.amitroaie Laurentiu Amitroaie
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: