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


##########
core/src/test/java/org/apache/iceberg/rest/RESTCatalogAdapter.java:
##########
@@ -704,4 +714,12 @@ private static TableIdentifier 
viewIdentFromPathVars(Map<String, String> pathVar
     return TableIdentifier.of(
         namespaceFromPathVars(pathVars), 
RESTUtil.decodeString(pathVars.get("view")));
   }
+
+  private static class ETag {
+    private static final HashFunction MURMUR3 = Hashing.murmur3_32_fixed();
+
+    public static String of(LoadTableResponse resp) {
+      return MURMUR3.hashString(resp.metadataLocation(), 
StandardCharsets.UTF_8).toString();
+    }
+  }

Review Comment:
   Initially, I thought that I just introduce ETag utility here so that we can 
test response header population and I'll figure out the details later. But 
you're right, I can't get away without figuring out the place and the details 
for the ETag provider at this point. Will get back with a change reflecting 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to