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

"not in" clause returns incorrect data when there is coercion

    XMLWordPrintableJSON

Details

    Description

      When the query has a where clause that has an integer column checking against being "not in" a decimal column, the decimal column is being changed to null, causing incorrect results.

      This is a sample query of a failure:
      select count from my_tbl where int_col not in (355.8);

      Since the int_col can never be 355.8, one would expect all the rows to be returned, but it is changing the 355.8 into a null value causing no rows to be returned.

      Attachments

        Activity

          People

            scarlin Steve Carlin
            scarlin Steve Carlin
            Votes:
            0 Vote for this issue
            Watchers:
            1 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 - 3h
                3h