You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2015/03/21 21:28:38 UTC
[jira] [Resolved] (SPARK-6146) Support more datatype in SqlParser
[ https://issues.apache.org/jira/browse/SPARK-6146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Armbrust resolved SPARK-6146.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.4.0
1.3.1
Issue resolved by pull request 5078
[https://github.com/apache/spark/pull/5078]
> Support more datatype in SqlParser
> ----------------------------------
>
> Key: SPARK-6146
> URL: https://issues.apache.org/jira/browse/SPARK-6146
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Reporter: Yin Huai
> Priority: Critical
> Fix For: 1.3.1, 1.4.0
>
>
> Right now, I cannot do
> {code}
> df.selectExpr("cast(a as bigint)")
> {code}
> because only the following data types are supported in SqlParser
> {code}
> protected lazy val dataType: Parser[DataType] =
> ( STRING ^^^ StringType
> | TIMESTAMP ^^^ TimestampType
> | DOUBLE ^^^ DoubleType
> | fixedDecimalType
> | DECIMAL ^^^ DecimalType.Unlimited
> | DATE ^^^ DateType
> | INT ^^^ IntegerType
> )
> {code}
--
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