vikrambohra commented on a change in pull request #3426:
URL: https://github.com/apache/gobblin/pull/3426#discussion_r751882838



##########
File path: 
gobblin-iceberg/src/main/java/org/apache/gobblin/iceberg/writer/IcebergMetadataWriter.java
##########
@@ -684,7 +687,8 @@ protected void addFiles(GobblinMetadataChangeEvent gmce, 
Map<String, Collection<
         Collection<HiveSpec> hiveSpecs = newSpecsMap.get(new 
Path(file.getFilePath()).getParent().toString());
         StructLike partition = getIcebergPartitionVal(hiveSpecs, 
file.getFilePath(), partitionSpec);
 
-        if(tableMetadata.completenessEnabled && gmce.getOperationType() == 
OperationType.add_files) {
+        
if(this.newPartitionTableWhitelistBlacklist.acceptTable(tableMetadata.dbName, 
tableMetadata.tableName)
+            && gmce.getOperationType() == OperationType.add_files) {
           tableMetadata.prevCompletenessWatermark = 
Long.parseLong(table.properties().getOrDefault(COMPLETION_WATERMARK_KEY,

Review comment:
       we will only white list kafka_streaming_hourly tables and re_write files 
will never occur for them.




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


Reply via email to