majian1998 opened a new pull request, #11646: URL: https://github.com/apache/hudi/pull/11646
The issue with Spark 3.5.1 arises because the InsertIntoHoodieTableCommand chain calls the initialization of the HoodieFileIndex class. For v1 tables, the path is stored in CatalogTable#CatalogStorageFormat#storageProperties, but not in CatalogTable#properties.  When Spark reloads the table, it removes the path key from CatalogTable#CatalogStorageFormat#storageProperties.   Consequently, InsertIntoHoodieTableCommand in Hudi cannot retrieve the path from either CatalogTable#CatalogStorageFormat#storageProperties or CatalogTable#properties during deduceOverwriteConfig. This absence of the path key in combinedOpts leads to an error when initializing HoodieFileIndex.  ### Change Logs None ### Impact None ### Risk level (write none, low medium or high below) None ### Documentation Update None ### Contributor's checklist - [ ] Read through [contributor's guide](https://hudi.apache.org/contribute/how-to-contribute) - [ ] Change Logs and Impact were stated clearly - [ ] Adequate tests were added if applicable - [ ] CI passed -- 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]
