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

Literals in conjunction of two IN expression are considered not equals if type precision is different

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • CBO

    Description

      create table r_table (
        string_col varchar(30)
      );
      
      
      create table l_table (
        string_col varchar(14)
      );
      
      insert into r_table VALUES ('AAA111');
      insert into l_table VALUES ('AAA111');
      SELECT l_table.string_col from l_table, r_table
      WHERE r_table.string_col = l_table.string_col AND l_table.string_col IN ('AAA111', 'BBB222') AND r_table.string_col IN ('AAA111', 'BBB222');
      

      Should give one row

      AAA111
      

      but it returns empty rs

      Workaround

      set hive.optimize.point.lookup=false;
      

      Attachments

        Issue Links

          Activity

            People

              kkasa Krisztian Kasa
              kkasa Krisztian Kasa
              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