[ 
https://issues.apache.org/jira/browse/HIVE-23769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17152235#comment-17152235
 ] 

Arman Yazdani commented on HIVE-23769:
--------------------------------------

But this code returns true
{code:java}
create table test.bool_test_1(a boolean);
insert into test.bool_test_1 values (1);
select `a` from test.bool_test_1;
{code}

> kafka-handler casting int to bool not work
> ------------------------------------------
>
>                 Key: HIVE-23769
>                 URL: https://issues.apache.org/jira/browse/HIVE-23769
>             Project: Hive
>          Issue Type: Bug
>          Components: kafka integration
>    Affects Versions: 3.1.0
>            Reporter: Arman Yazdani
>            Priority: Major
>
> The hive kafka-handler casts all integer values to false forĀ {{JsonSerDe}} if 
> field type is boolean.
> for example if the value in kafka topic be "0" or "1", for both of them the 
> select value of hive kafka-handler external table is false.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to