rdblue 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_r300840454
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceResolution.scala
##########
@@ -85,6 +85,28 @@ case class DataSourceResolution(
.asTableCatalog
convertCTAS(catalog, identifier, create)
+ case DescribeColumnStatement(
+ AsTableIdentifier(tableName), colName, isExtended) =>
+ DescribeColumnCommand(tableName, colName, isExtended)
+
+ case DescribeColumnStatement(
+ CatalogObjectIdentifier(Some(catalog), ident), colName, isExtended) =>
+ throw new AnalysisException("Describing columns is not supported for v2
tables.")
Review comment:
Should this be supported eventually, or is it redundant if DESCRIBE TABLE is
available?
----------------------------------------------------------------
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]