You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Herman van Hovell (JIRA)" <ji...@apache.org> on 2016/04/13 08:06:25 UTC

[jira] [Commented] (SPARK-14591) DDLParser should accept decimal(precision)

    [ 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org