cloud-fan commented on a change in pull request #29880:
URL: https://github.com/apache/spark/pull/29880#discussion_r496699021
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/connector/DataSourceV2SQLSuite.scala
##########
@@ -168,7 +168,31 @@ class DataSourceV2SQLSuite
Array("Provider", "foo", ""),
Array(TableCatalog.PROP_OWNER.capitalize, defaultUser, ""),
Array("Table Properties", "[bar=baz]", "")))
+ }
+ test("Describe column is not supported for v2 catalog") {
+ withTable("testcat.tbl") {
+ spark.sql("CREATE TABLE testcat.tbl (id bigint) USING foo")
+ val ex = intercept[AnalysisException] {
+ spark.sql("DESCRIBE testcat.tbl id")
+ }
+ assert(ex.message.contains("Describing columns is not supported for v2
tables"))
Review comment:
If there is no API limitation to support it, can we implement describe
column for v2 catalogs later? @imback82
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]