hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nishant Bangarwa (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-19604) Incorrect Handling of Boolean in DruidSerde
Date Mon, 11 Jun 2018 21:12:00 GMT

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

Nishant Bangarwa commented on HIVE-19604:
-----------------------------------------

[~ashutoshc] updated patch added minitest, 
We still need instanceof check as we store booleans as dimensions in druid which are of type
string. 
In the query we get string if we directly query those dimension columns, In case we use expressions
whoose result is boolean we will get a numeric value. 

> 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
>         Attachments: HIVE-19604.01.patch, 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)

Mime
View raw message