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

Ashutosh Chauhan commented on HIVE-19604:
-----------------------------------------

Do we need instanceof check? These are results returned from Druid and they 
will always be int. I think its safe to assume type is int since its unlikely 
that Druid will change that.

> Incorrect Handling of Boolean in DruidSerde
> -------------------------------------------
>
>                 Key: HIVE-19604
>                 URL: https://issues.apache.org/jira/browse/HIVE-19604
>             Project: Hive
>          Issue Type: Bug
>          Components: Druid integration
>            Reporter: Nishant Bangarwa
>            Assignee: Nishant Bangarwa
>            Priority: Major
>             Fix For: 3.0.0
>
>         Attachments: HIVE-19604.patch
>
>
> Results of boolean expressions from Druid are expressed in the form of 
> numeric 1 or 0. 
> When reading the results in DruidSerde both 1 and 0 are translated to String 
> and then we call Boolean.valueOf(stringForm), this leads to the boolean being 
> read always as false.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to