gaborkaszab commented on code in PR #17598:
URL: https://github.com/apache/iceberg/pull/17598#discussion_r3854154621


##########
core/src/main/java/org/apache/iceberg/rest/ETagProvider.java:
##########
@@ -45,6 +45,6 @@ public static String of(String metadataLocation, Map<String, 
String> params) {
       stringToHash = COMMA.join(metadataLocation, 
PARAMS_JOINER.join(orderedParams));
     }
 
-    return MURMUR3.hashString(stringToHash, StandardCharsets.UTF_8).toString();
+    return String.format("\"%s\"", MURMUR3.hashString(stringToHash, 
StandardCharsets.UTF_8));

Review Comment:
   Minor: might be more readable to introduce a private function like `quote()` 
or such and do `return quote(MURMUR3.hashString(...));`



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