Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-28444

ASX0005: Invalid item type: function agg-sum cannot process item type string in an input array (or multiset)

    XMLWordPrintable

Details

    • Untriaged
    • Unknown
    • CX Sprint 115

    Description

      Running the below CBAS query on the attached data throws an error:

      "msg": "ASX0005: Invalid item type: function agg-sum cannot process item type string in an input array (or multiset)"

      SELECT SUM(DISTINCT int_field1 ) FROM  multiple_table_db_64708804_simple_table_1_shadow   WHERE  ((bool_field1 AND char_field1 = "N")) OR ((bool_field1 != true OR int_field1 <= 50208485))    GROUP BY   int_field1 , decimal_field1 ,  primary_key_id , varchar_field1 , char_field1 ,  bool_field1;
      

      On making a slight modification to the query by removing DISTINCT, it works:

      SELECT SUM(int_field1 ) FROM  multiple_table_db_64708804_simple_table_1_shadow   WHERE  ((bool_field1 AND char_field1 = "N")) OR ((bool_field1 != true OR int_field1 <= 50208485))    GROUP BY   int_field1 , decimal_field1 ,  primary_key_id , varchar_field1 , char_field1 ,  bool_field1;
      

      Also attaching the data for reference. int_field1 contains all integer values.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dmitry.lychagin Dmitry Lychagin (Inactive)
            ritesh.agarwal Ritesh Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty