You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Arman Yazdani (Jira)" <ji...@apache.org> on 2020/07/04 19:29:00 UTC

[jira] [Commented] (HIVE-23769) kafka-handler casting int to bool not work

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

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

We are using HDP 3.1 of hive. it seems the JsonSerDe class in HDP converts 1 to false because of this line of code: [https://github.com/hortonworks/hive-release/blob/HDP-3.1.4.53-1-tag/serde/src/java/org/apache/hadoop/hive/serde2/JsonSerDe.java#L284]

> 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)