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. 
   
![image](https://github.com/user-attachments/assets/660d3c1a-745f-456c-ae52-ca6dc75c1467)
   
   
   When Spark reloads the table, it removes the path key from 
CatalogTable#CatalogStorageFormat#storageProperties. 
   
   
![image](https://github.com/user-attachments/assets/50d2268c-a1d2-422c-882a-c101e5c4c9ea)
   
![image](https://github.com/user-attachments/assets/1a5c4543-6094-4110-8714-61c898a00051)
   
   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.
   
![image](https://github.com/user-attachments/assets/b042afbd-faff-4a93-bb74-eed59fa49e5d)
   
   ### 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]

Reply via email to