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

Fix GenericUDFIn for Binary type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      When we use IN, or the query optimizer converts our OR statements to IN then we get empty results.
      One example is:

      create table test_binary(datet timestamp, dip binary);
      insert into test_binary values ('2022-04-20 00:00:00.0', 'a'),('2022-04-20 00:00:00.0', 'b'), ('2022-04-20 00:00:00.0', 'c') ;
      select * from test_binary where dip = unhex('61') or dip = unhex('62') ; --empty result
      select * from test_binary where dip = unhex('61'); -- correct result
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pvary Peter Vary
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: