mansehajsingh commented on code in PR #1037:
URL: https://github.com/apache/polaris/pull/1037#discussion_r1972115487
##########
service/common/src/main/java/org/apache/polaris/service/catalog/PolarisCatalogHandlerWrapper.java:
##########
@@ -786,15 +787,44 @@ public boolean sendNotification(TableIdentifier
identifier, NotificationRequest
&& notificationCatalog.sendNotification(identifier, request);
}
+ private boolean etagMatchesCurrentMetadataLocation(String etag,
TableIdentifier tableIdentifier) {
+ if (etag != null) {
+ PolarisResolvedPathWrapper target = resolutionManifest
+ .getResolvedPath(tableIdentifier, PolarisEntitySubType.TABLE,
true);
+
+ String currentEntityMetadataVersion = target
+ .getRawLeafEntity()
+ .getInternalPropertiesAsMap()
+ .get(TableLikeEntity.METADATA_LOCATION_KEY);
Review Comment:
Updated to use entityId:entityVersion tuple instead!
--
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]