forrest lv created HIVE-12343:
---------------------------------

             Summary: when column type is decimal and the literal value 
contains space will return null
                 Key: HIVE-12343
                 URL: https://issues.apache.org/jira/browse/HIVE-12343
             Project: Hive
          Issue Type: Bug
    Affects Versions: 1.1.0
            Reporter: forrest lv
            Assignee: forrest lv
            Priority: Minor
             Fix For: 1.1.0


when column type is decimal and the literal value contains space will return 
null
create table t2(id string,name string,score decimal) ROW FORMAT DELIMITED  
FIELDS TERMINATED BY ','  stored as textfile;
SZX1000045568:/opt/data # hdfs dfs -cat /user/hive/warehouse/t2/t2.dat;
1,laolv, 99.99  
2,laolv2,98.99
select * from t2;
+--------+----------+-----------+--+
| t2.id  | t2.name  | t2.score  |
+--------+----------+-----------+--+
| 1      | laolv    | NULL      |
| 2      | laolv2   | 99        |
+--------+----------+-----------+--+



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to