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

NPE in SqlUtil#getSelectListItem

    XMLWordPrintableJSON

Details

    Description

      Queries similar to SELECT 1 UNION SELECT 2, 3 causes validator to throws a NullPointerException instance instead of a proper error message about the column count mismatch.

      SqlUtil#getSelectListItem is used by Set operators to get select items if the types of operands don't match. Unfortunately the method may throw an NPE exception if one of the operand doesn't have a FROM clause.

      Attachments

        Issue Links

          Activity

            People

              laurent Laurent Goujon
              laurent Laurent Goujon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m