yihua commented on code in PR #17464:
URL: https://github.com/apache/hudi/pull/17464#discussion_r2583609107
##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/hudi/command/CreateHoodieTableLikeCommand.scala:
##########
@@ -89,16 +89,10 @@ case class CreateHoodieTableLikeCommand(targetTable:
TableIdentifier,
CreateHoodieTableCommand.validateTblProperties(hoodieCatalogTable)
val queryAsProp =
hoodieCatalogTable.catalogProperties.get(ConfigUtils.IS_QUERY_AS_RO_TABLE)
- if (queryAsProp.isEmpty) {
+ if (!hoodieCatalogTable.hoodieTableExists) {
Review Comment:
Let's add test cases based on #14107 that fail without the fix.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]