Uploaded image for project: 'Apache AsterixDB'
  1. Apache AsterixDB
  2. ASTERIXDB-3409

Query failing compilation when run twice on columnar collections

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.9
    • 0.9.10
    • COMP - Compiler

    Description

      SELECT COUNT(DISTINCT R3.id) AS count
      FROM (
      SELECT t.*
      FROM R AS t
      WHERE ((ARRAY_SUM((
              SELECT VALUE i.`count`
              FROM t.`a1` AS i)) >= 3 ))) AS R3
      

      throws

      java.lang.IllegalStateException: Cannot replace ARRAY with ANY
      at org.apache.asterix.optimizer.rules.pushdown.schema.ObjectExpectedSchemaNode.replaceChild(ObjectExpctedSchemaNode.java:70)

      The reason is that irreplaceable root types doesn't ignore modifications (e.g., adding a child)

      Attachments

        Activity

          People

            wyk Wail Y. Alkowaileet
            wyk Wail Y. Alkowaileet
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: