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

NPE in queries with a project on a subquery with Union all

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.8.0
    • SQL Parser
    • None

    Description

      The following query (data file attached) causes a NPE:

      select trans_id from
      (
      select trans_id, trans_id as ti from dfs.`mobile-small-copy.json.gz` where trans_id = 19999
      union all
      select trans_id, trans_id as ti from dfs.`mobile-small-copy.json.gz` where trans_id = 19998
      )

      Attachments

        1. DRILL-1886.patch
          1 kB
          Parth Chandra
        2. mobile-small-copy.json.gz
          785 kB
          Parth Chandra

        Issue Links

          Activity

            People

              seanhychu Sean Hsuan-Yi Chu
              parthc Parth Chandra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: