Rajeev-01 opened a new issue, #14296:
URL: https://github.com/apache/iceberg/issues/14296

   ### Apache Iceberg version
   
   1.9.2
   
   ### Query engine
   
   None
   
   ### Please describe the bug 🐞
   
   ### Summary
   
   - While we are creating a new table in hive, if location hasn't passed 
explicitly we are fetching database path from HMS and appending "/" followed by 
tableName.
   - There are no checks if the HMS db path has trailing slashes.
   - This ended up in creating the metadata files with the incorrect location 
which contains the double slashes.
   - This is a potential issue, since in metadata, location will be incorrect 
but the snapshot files will be under the path without multiple slashes. 
   - While rewriting we won't able to overwrite to the correct prefix since the 
location is incorrect with multiple slashes. 
   
   ### Willingness to contribute
   
   - [x] I can contribute a fix for this bug independently
   - [ ] I would be willing to contribute a fix for this bug with guidance from 
the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this time


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to