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

BlockBuilder.append raises an NPE when called with a ConditionalStatement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.27.0, 1.28.0
    • 1.32.0
    • core
    • None

    Description

      I noticed this while working on BEAM-13099. Beam's usage of BlockBuilder here raises an NPE, due to the null-checking added in https://github.com/apache/calcite/commit/d9a81b88ad561e7e4cedae93e805e0d7a53a7f1a.

      We pass a ConditionalStatement to BlockBuilder.append, which doesn't match either if statement, and produces a null result.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bhulette Brian Hulette
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: