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

Davies Liu commented on SPARK-12848:
------------------------------------

 [~hvanhovell] The `BD` tag only works in Hive, other databases (MySQL, 
PostgreSQL, Impala etc) does not need this tag to get decimal work correctly.  
The reason I create this JIRA as subtask is that the previous SQL parser can 
handler this, but new parser can't (kind of a regression).

> Parse number as decimal
> -----------------------
>
>                 Key: SPARK-12848
>                 URL: https://issues.apache.org/jira/browse/SPARK-12848
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Davies Liu
>
> Right now, Hive parser will parse 1.23 as double, when it's used with decimal 
> columns, you will turn the decimal into double, lose the precision.
> We should follow most database had done, parse 1.23 as double, it will be 
> converted into double when used with double.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to