rdblue edited a comment on issue #1911:
URL: https://github.com/apache/iceberg/issues/1911#issuecomment-743334192


   Iceberg supports a `LocationProvider` implementation so that tables can 
customize the file layout. We already have a [`LocationProvider` that hashes to 
distribute 
files](https://github.com/apache/iceberg/blob/master/core/src/main/java/org/apache/iceberg/LocationProviders.java#L91-L131)
 and avoid this problem that you can enable by setting 
[`write.object-storage.enabled=true`](https://github.com/apache/iceberg/blob/09c69a129cbcba83637d2c4c292850803d5a9b03/core/src/main/java/org/apache/iceberg/TableProperties.java#L87-L90)
 for a table and providing a base location with `write.object-storage.path`.
   
   Hopefully that should already implement what you need to solve this problem. 
It doesn't currently alter the file names that are passed in, but you could 
write a `LocationProvider` that does basically the same thing and adds a prefix 
to the file path as well.


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

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