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 2022/03/29 07:09:31 UTC
[GitHub] [hudi] xushiyan commented on a change in pull request #5145: [HUDI-2520] Fix CTAS statment issue when sync to hive
xushiyan commented on a change in pull request #5145:
URL: https://github.com/apache/hudi/pull/5145#discussion_r837127511
##########
File path: hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/hudi/command/CreateHoodieTableCommand.scala
##########
@@ -167,10 +166,6 @@ object CreateHoodieTableCommand {
if (!dbExists) {
throw new NoSuchDatabaseException(dbName)
}
- // check table exists
- if (sparkSession.sessionState.catalog.tableExists(table.identifier)) {
- throw new TableAlreadyExistsException(dbName, table.identifier.table)
- }
Review comment:
this is some behavior change: can you clarify why this is a reasonable change? above this line, we check if db exists and throw, why we don't check for table?
--
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