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

getValidatedNodeTypeIfKnown should never throw

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 1.36.0
    • 1.37.0
    • core
    • None

    Description

      During validation, when a SqlNode has been rewritten (for instance when a COALESCE call has been rewritten as a CASE call) but does not yet have a RelDataType, the method SqlValidatorImpl.getValidatedNodeTypeIfKnown() throws an exception because it relies on SqlValidatorImpl.getValidatedNodeType(originalExpr), not on SqlValidatorImpl.getValidatedNodeTypeIfKnown(originalExpr).

       

      Attachments

        Issue Links

          Activity

            People

              mbudiu Mihai Budiu
              cbrisson Claude Brisson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: