[jira] [Commented] (SPARK-6146) Support more datatype in SqlParser
[ https://issues.apache.org/jira/browse/SPARK-6146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14368204#comment-14368204 ] Apache Spark commented on SPARK-6146: - User 'yhuai' has created a pull request for this issue: 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 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org
[jira] [Commented] (SPARK-6146) Support more datatype in SqlParser
[ https://issues.apache.org/jira/browse/SPARK-6146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14364272#comment-14364272 ] Michael Armbrust commented on SPARK-6146: - Now that we have our own DDL parser that doesn't live in hive, we should use one code path for this. 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 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org