dilipbiswal commented on a change in pull request #23883: [SPARK-26982][SQL]
Enhance describe framework to describe the output of a query.
URL: https://github.com/apache/spark/pull/23883#discussion_r260094381
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala
##########
@@ -362,13 +362,23 @@ class SparkSqlAstBuilder(conf: SQLConf) extends
AstBuilder(conf) {
} else {
Map.empty[String, String]
}
- DescribeTableCommand(
- visitTableIdentifier(ctx.tableIdentifier),
+ DescribeTableOrQueryCommand(
+ Option(visitTableIdentifier(ctx.tableIdentifier)),
Review comment:
@maropu with the change, DescribeTableOrQueryCommand takes a optional table
identifier. Thats why i wrap it under an `Option`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]