Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-4974

NPE in FindPartitionConditions.analyzeCall() for 'holistic' expressions

    XMLWordPrintableJSON

Details

    Description

      The following query can cause an NPE in FindPartitionConditions.analyzeCall() if the fileSize column is a partitioned column.

      SELECT fileSize FROM dfs.`/drill-data/data/` WHERE compoundId LIKE 'FOO-1234567%'

      This is because, the LIKE is treated as a holistic expression in FindPartitionConditions.analyzeCall(), causing opStack to be empty, thus causing opStack.peek() to return a NULL value.

      Attachments

        Issue Links

          Activity

            People

              karthikm Karthikeyan Manivannan
              karthikm Karthikeyan Manivannan
              Krystal Krystal
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Remaining Estimate - 2h
                  2h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified