Sergey Shelukhin created HIVE-20417:
---------------------------------------

             Summary: Hive converts strings to doubles in a strange manner
                 Key: HIVE-20417
                 URL: https://issues.apache.org/jira/browse/HIVE-20417
             Project: Hive
          Issue Type: Bug
            Reporter: Sergey Shelukhin
            Assignee: Matt McCline


This is not on master, but on a close enough version, so it needs to be dbl 
checked... running with vectorization on:
{noformat}
POSTHOOK: query: create table cross_numbers(i string)
POSTHOOK: query: insert into table cross_numbers select key from src limit 20
POSTHOOK: query: select c1.i, c2.i, c1.i + c2.i, c1.i + '' + c2.i from 
cross_numbers c1 cross 
401     265     666.0   NULL
401     255     656.0   NULL
401     165     566.0   NULL
{noformat}

Why are strings added as numbers, and string + '' + string converted to null is 
not clear..

[~ashutoshc] is plus supposed to work for string?



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

Reply via email to