TengHuo commented on PR #7307: URL: https://github.com/apache/hudi/pull/7307#issuecomment-1328817142
And I found there is another similar issue in `HoodieCatalogTable#initHoodieTable` https://github.com/apache/hudi/blob/e088faac9eca747f74a48f12358a3bb6f66c21d5/hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/catalyst/catalog/HoodieCatalogTable.scala#L189 When creating a table from an empty path, it will set the record name in `hoodie.table.create.schema` as `$tableName_record`. However, if the path is an existing Hudi table (`hoodieTableExists` is `true`) when creating a table, it will rewrite the record name in `hoodie.table.create.schema` as `topLevelRecord`, which is the default value of `recordName` in `SchemaConverters#toAvroType`. May I ask if it is an issue or by design behaviour? -- 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]
