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

Karen Coppage commented on HIVE-23769:
--------------------------------------

[~arman1371] I don't think implicit casting from int to boolean is supported in 
Hive, according to the wiki: 
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Types#LanguageManualTypes-AllowedImplicitConversions

> 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