RussellSpitzer commented on code in PR #10724:
URL: https://github.com/apache/iceberg/pull/10724#discussion_r1688404591


##########
core/src/main/java/org/apache/iceberg/DataFiles.java:
##########
@@ -259,11 +268,19 @@ public Builder withFileSizeInBytes(long 
newFileSizeInBytes) {
     }
 
     public Builder withPartitionPath(String newPartitionPath) {
+      return withPartitionPath(newPartitionPath, 
DEFAULT_PARTITION_STRING_CONVERSION);
+    }
+
+    public Builder withPartitionPath(
+        String newPartitionPath, BiFunction<String, Type, Object> 
partitionPathConverter) {

Review Comment:
   I like both of those alternatives. 
   
   1. Is probably the right solution (our string support is there pretty much 
expressly for hive) but I have no problem with doing 2. since we don't really 
have any other use case for this.



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