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/11/28 10:03:37 UTC

[GitHub] [hudi] TengHuo commented on pull request #7307: [HUDI-5271] fix issue inconsistent reader and writer schema in HoodieAvroDataBlock

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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org