Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-5333

Query with "WITH" clause is failing after calcite upgrade

    XMLWordPrintableJSON

Details

    • Bug
    • Status: In Progress
    • Major
    • Resolution: Unresolved
    • 1.31.0
    • None
    • core, extensions
    • None

    Description

      I have a simple query using "WITH" clause:
      "WITH tempTable AS (SELECT * FROM PCOLLECTION WHERE PCOLLECTION.`user_info`.`name` = 'User1') SELECT * FROM tempTable"

      and schema such as:

      { "doc":"More information on the user", "name":"user_info", "type":["null", "user_info"], "default":null }

      This query was running properly with Calcite 1.20. But after upgrade to Calcite 1.31, the above query is failing with the error:
      "java.lang.AssertionError: fieldList must not be null, type = VARCHAR"

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rishk1111 Rish K
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: