Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-3795

NPE in SELECT when WHERE-clause is an and/or/not operation involving null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 0.11.0
    • Query Processor
    • None

    Description

      Sometimes users forget to quote date constants in queries. For example, SELECT * FROM some_table WHERE ds >= 2012-12-10 and ds <= 2012-12-12; . In such cases, if the WHERE-clause contains and/or/not operation, it would throw NPE exception. That's because PcrExprProcFactory in ql/optimizer forgot to check null.

      Attachments

        1. HIVE-3795.1.patch.txt
          59 kB
          Xiao Jiang
        2. HIVE-3795.2.patch.txt
          25 kB
          Xiao Jiang
        3. HIVE-3795.3.patch.txt
          25 kB
          Xiao Jiang
        4. hive.3795.4.patch
          25 kB
          Namit Jain

        Activity

          People

            showbufire Xiao Jiang
            showbufire Xiao Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: