diff options
author | bomeng <bmeng@us.ibm.com> | 2016-06-21 08:51:43 +0100 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-06-21 08:51:43 +0100 |
commit | f3a768b7b96f00f33d2fe4e6c0bf4acf373ad4f4 (patch) | |
tree | cc485a8d37fcfd819235abbe19c4b35bbd415199 /sql/core | |
parent | a58f40239444d42adbc480ddde02cbb02a79bbe4 (diff) | |
download | spark-f3a768b7b96f00f33d2fe4e6c0bf4acf373ad4f4.tar.gz spark-f3a768b7b96f00f33d2fe4e6c0bf4acf373ad4f4.tar.bz2 spark-f3a768b7b96f00f33d2fe4e6c0bf4acf373ad4f4.zip |
[SPARK-16084][SQL] Minor comments update for "DESCRIBE" table
## What changes were proposed in this pull request?
1. FORMATTED is actually supported, but partition is not supported;
2. Remove parenthesis as it is not necessary just like anywhere else.
## How was this patch tested?
Minor issue. I do not think it needs a test case!
Author: bomeng <bmeng@us.ibm.com>
Closes #13791 from bomeng/SPARK-16084.
Diffstat (limited to 'sql/core')
-rw-r--r-- | sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala b/sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala index 154c25adfa..2ae8380644 100644 --- a/sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala +++ b/sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala @@ -279,15 +279,15 @@ class SparkSqlAstBuilder(conf: SQLConf) extends AstBuilder { * Create a [[DescribeTableCommand]] logical plan. */ override def visitDescribeTable(ctx: DescribeTableContext): LogicalPlan = withOrigin(ctx) { - // FORMATTED and columns are not supported. Return null and let the parser decide what to do - // with this (create an exception or pass it on to a different system). + // Describe partition and column are not supported yet. Return null and let the parser decide + // what to do with this (create an exception or pass it on to a different system). if (ctx.describeColName != null || ctx.partitionSpec != null) { null } else { DescribeTableCommand( visitTableIdentifier(ctx.tableIdentifier), ctx.EXTENDED != null, - ctx.FORMATTED() != null) + ctx.FORMATTED != null) } } |