You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Peter Vary (Jira)" <ji...@apache.org> on 2022/05/20 12:36:00 UTC

[jira] [Created] (HIVE-26250) Fix GenericUDFIn for Binary type

Peter Vary created HIVE-26250:
---------------------------------

             Summary: Fix GenericUDFIn for Binary type
                 Key: HIVE-26250
                 URL: https://issues.apache.org/jira/browse/HIVE-26250
             Project: Hive
          Issue Type: Bug
            Reporter: Peter Vary


When we use IN, or the query optimizer converts our OR statements to IN then we get empty results.
One example is:
{code}
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
{code} 



--
This message was sent by Atlassian Jira
(v8.20.7#820007)