cloud-fan commented on a change in pull request #25040: [SPARK-28238][SQL]
Implement DESCRIBE TABLE for Data Source V2 Tables.
URL: https://github.com/apache/spark/pull/25040#discussion_r302898436
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/basicLogicalOperators.scala
##########
@@ -499,6 +501,14 @@ object OverwritePartitionsDynamic {
}
}
+case class DescribeTable(
+ catalog: TableCatalog,
+ ident: Identifier,
+ isExtended: Boolean) extends Command {
+ override lazy val output = DescribeTableSchemas.DESCRIBE_TABLE_ATTRIBUTES
+ override lazy val schema = DescribeTableSchemas.DESCRIBE_TABLE_SCHEMA
Review comment:
by default schema is `StructType.fromAttributes(output)`, so we don't need
to override it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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]