hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ariel M (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-3604) Casting strings to booleans gives unexpected result
Date Mon, 22 Oct 2012 21:04:11 GMT
Ariel M created HIVE-3604:
-----------------------------

             Summary: 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message