zakariya-s commented on code in PR #2776:
URL: https://github.com/apache/iceberg-rust/pull/2776#discussion_r3608936592


##########
crates/iceberg/src/spec/table_metadata.rs:
##########
@@ -364,6 +364,33 @@ impl TableMetadata {
         &self.properties
     }
 
+    /// Returns the default metadata directory for a table location: the 
`metadata`
+    /// subdirectory under `table_location`. Used when `write.metadata.path` 
is not set.
+    pub fn default_metadata_dir(table_location: &str) -> String {

Review Comment:
   Fairs, it was added as part of this comment: 
https://github.com/apache/iceberg-rust/pull/2776#discussion_r3554469237
   
   I guess the original reasoning was that we'd do this format more than once 
unlike `write.data.path` which only needs to generate the data path once: 
https://github.com/apache/iceberg-rust/blob/db4f6091850814b83989721afe12aa9e4406d6b3/crates/iceberg/src/writer/file_writer/location_generator.rs#L66



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