cloud-fan commented on a change in pull request #32931:
URL: https://github.com/apache/spark/pull/32931#discussion_r656099504
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/v2/DataSourceV2Strategy.scala
##########
@@ -377,8 +377,11 @@ class DataSourceV2Strategy(session: SparkSession) extends
Strategy with Predicat
case LoadData(_: ResolvedTable, _, _, _, _) =>
throw QueryCompilationErrors.loadDataNotSupportedForV2TablesError()
- case ShowCreateTable(_: ResolvedTable, _, _) =>
- throw
QueryCompilationErrors.showCreateTableNotSupportedForV2TablesError()
+ case ShowCreateTable(rt: ResolvedTable, asSerde, output) =>
+ if (asSerde) {
+ throw
QueryCompilationErrors.showCreateTableNotSupportedForV2TablesError()
Review comment:
the error message should be updated. The thing we don't support here is
SHOW CREATE TABLE AS SERDE
--
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]