danny0405 commented on code in PR #8660: URL: https://github.com/apache/hudi/pull/8660#discussion_r1188059660
########## hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/RunBootstrapProcedure.scala: ########## @@ -110,9 +111,7 @@ class RunBootstrapProcedure extends BaseProcedure with ProcedureBuilder with Log val cfg = new BootstrapExecutorUtils.Config() cfg.setTableName(tableName) - if (database.isDefined) { - cfg.setDatabase(database.get) - } + cfg.setDatabase(database.getOrElse(HIVE_DATABASE.defaultValue())) cfg.setTableType(tableType) Review Comment: I think so. Using the session database name makes more sense. -- 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-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org