You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Alexander Pivovarov (JIRA)" <ji...@apache.org> on 2015/04/08 20:14:14 UTC
[jira] [Resolved] (HIVE-3604) Casting strings to booleans gives
unexpected result
[ https://issues.apache.org/jira/browse/HIVE-3604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Pivovarov resolved HIVE-3604.
---------------------------------------
Resolution: Won't Fix
> Casting strings to booleans gives unexpected result
> ---------------------------------------------------
>
> Key: HIVE-3604
> URL: https://issues.apache.org/jira/browse/HIVE-3604
> Project: Hive
> Issue Type: Bug
> Components: UDF
> Affects Versions: 0.8.1
> Environment: Amazon EMR
> Reporter: Ariel M
>
> I would expect the following query to return false in both columns:
> select 'false', cast('false' as boolean) from example_table limit 1;
> but here are the actual results:
> Total MapReduce CPU Time Spent: X seconds X msec
> OK
> false true
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)