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

Herman van Hovell commented on SPARK-14591:
-------------------------------------------

[~yhuai] I just tried the following in the REPL:
{noformat}
scala> import org.apache.spark.sql.catalyst.parser.CatalystSqlParser._
scala> parseDataType("decimal(5)")
res0: org.apache.spark.sql.types.DataType = DecimalType(5,0)
{noformat}

And this seems to be working fine. Do you have an example where this doesn't 
work?

> DDLParser should accept decimal(precision)
> ------------------------------------------
>
>                 Key: SPARK-14591
>                 URL: https://issues.apache.org/jira/browse/SPARK-14591
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Yin Huai
>
> Right now, our DDLParser does not support {{decimal(precision)}} (the scale 
> will be set to 0). We should support it.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to