You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2021/11/24 10:16:45 UTC
[GitHub] [hudi] YannByron commented on a change in pull request #3998: [HUDI-2759] extract HoodieCatalogTable to coordinate spark catalog table and hoodie table
YannByron commented on a change in pull request #3998:
URL: https://github.com/apache/hudi/pull/3998#discussion_r755890704
##########
File path: hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/CreateHoodieTableCommand.scala
##########
@@ -182,17 +124,18 @@ case class CreateHoodieTableCommand(table: CatalogTable, ignoreIfExists: Boolean
table.storage.compressed,
storageProperties + ("path" -> path))
- val newDatabaseName = formatName(table.identifier.database
- .getOrElse(sessionState.catalog.getCurrentDatabase))
+ val tablName = HoodieSqlUtils.formatName(sparkSession, table.identifier.table)
+ val newDatabaseName = HoodieSqlUtils.formatName(sparkSession, table.identifier.database
+ .getOrElse(catalog.getCurrentDatabase))
val newTableIdentifier = table.identifier
- .copy(table = tableName, database = Some(newDatabaseName))
+ .copy(table = tablName, database = Some(newDatabaseName))
Review comment:
Spelling mistakes ~.~
--
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.
To unsubscribe, e-mail: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org