YannByron commented on code in PR #6225:
URL: https://github.com/apache/hudi/pull/6225#discussion_r934091708


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/hudi/command/CreateHoodieTableCommand.scala:
##########
@@ -62,12 +65,22 @@ case class CreateHoodieTableCommand(table: CatalogTable, 
ignoreIfExists: Boolean
     // check if there are conflict between table configs defined in hoodie 
table and properties defined in catalog.
     CreateHoodieTableCommand.validateTblProperties(hoodieCatalogTable)
 
-    // init hoodie table
-    hoodieCatalogTable.initHoodieTable()
+    val queryAsProp = 
hoodieCatalogTable.catalogProperties.get(ConfigUtils.IS_QUERY_AS_RO_TABLE)
+    if (queryAsProp.isEmpty) {

Review Comment:
   it should be. it must have a normal mor table when you want to create a 
ro/rt one related to.



-- 
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

Reply via email to