Uploaded image for project: 'Apache Trafodion (Retired)'
  1. Apache Trafodion (Retired)
  2. TRAFODION-2578

Internal error 2235 with UDFs and subquery unnesting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.3-incubating
    • None
    • sql-cmp
    • None

    Description

      I've seen this error when compiling query plans with TMUDFs:

          • ERROR[2235] Compiler Internal Error: An unknown error, originated from file ../optimizer/RelRoutine.cpp at line 465.

      The issue is in method RelExpr::getMoreOutputsIfPossible(), which is used during semantic query optimization to get additional key columns from RelExprs. This calls TableMappingUDF::getPotentialOutputValuesAsVEGs(), which is stubbed out with an assert.

      We either need to make RelExpr::getMoreOutputsIfPossible() virtual and override it for TableMappingUDF, or implement TableMappingUDF::getPotentialOutputValuesAsVEGs(). Right now I'm leaning towards the former.

      Attachments

        Activity

          People

            hzeller Hans Zeller
            hzeller Hans Zeller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: