singhpk234 commented on code in PR #7128:
URL: https://github.com/apache/iceberg/pull/7128#discussion_r1141475815


##########
core/src/main/java/org/apache/iceberg/LocationProviders.java:
##########
@@ -167,5 +169,18 @@ private static String pathContext(String tableLocation) {
 
       return resolvedContext;
     }
+
+    private static String computeHash(String fileName) {
+      Preconditions.checkState(fileName != null, "fileName cannot be null");
+      byte[] messageDigest =
+          
HASH_FUNC.hashBytes(fileName.getBytes(StandardCharsets.UTF_8)).asBytes();
+
+      StringBuilder hash = new StringBuilder();
+      for (int i = 0; i < 8; ++i) {

Review Comment:
   +1, not required at the moment, though delta has this property called 
`randomPrefixLength` defaulting to `2` [code 
pointer](https://github.com/delta-io/delta/blob/master/core/src/main/scala/org/apache/spark/sql/delta/DeltaConfig.scala#L436-L445)
 .if required, can take this as a follow-up pr.



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