imback82 commented on a change in pull request #30229:
URL: https://github.com/apache/spark/pull/30229#discussion_r517105993
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/connector/DataSourceV2SQLSuite.scala
##########
@@ -2606,6 +2606,13 @@ class DataSourceV2SQLSuite
}
}
+ private def testNotSupportedV2Command(sqlCommand: String, sqlParams:
String): Unit = {
+ val e = intercept[AnalysisException] {
+ sql(s"$sqlCommand $sqlParams")
+ }
+ assert(e.message.contains(s"$sqlCommand is not supported for v2 tables"))
Review comment:
Yes, the plan is to move all the commands using `parseV1Table` in
`ResolveSessionCatalog` to use the new framework and unify the message in the
process.
----------------------------------------------------------------
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]