cloud-fan commented on a change in pull request #24617: [SPARK-27732][SQL] Add
v2 CreateTable implementation.
URL: https://github.com/apache/spark/pull/24617#discussion_r286925161
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/DataSourceResolution.scala
##########
@@ -54,6 +54,15 @@ case class DataSourceResolution(
CreateTable(tableDesc, mode, None)
+ case create: CreateTableStatement =>
+ // the provider was not a v1 source, convert to a v2 plan
+ val CatalogObjectIdentifier(maybeCatalog, identifier) = create.tableName
+ val catalog = maybeCatalog
+ .getOrElse(throw new AnalysisException(
Review comment:
shall we use default catalog here?
----------------------------------------------------------------
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]