[ https://issues.apache.org/jira/browse/HIVE-27031?focusedWorklogId=845012&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-845012 ]
ASF GitHub Bot logged work on HIVE-27031: ----------------------------------------- Author: ASF GitHub Bot Created on: 13/Feb/23 07:49 Start Date: 13/Feb/23 07:49 Worklog Time Spent: 10m Work Description: deniskuzZ commented on code in PR #4026: URL: https://github.com/apache/hive/pull/4026#discussion_r1104098138 ########## iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/HiveIcebergStorageHandler.java: ########## @@ -1153,4 +1155,16 @@ public Map<String, String> getNativeProperties(org.apache.hadoop.hive.ql.metadat props.put(InputFormatConfig.PARTITION_SPEC, PartitionSpecParser.toJson(origTable.spec())); return props; } + + @Override + public boolean shouldOverwrite(org.apache.hadoop.hive.ql.metadata.Table mTable, String operationName) { + String mode = null; + String formatVersion = mTable.getTTable().getParameters().get(TableProperties.FORMAT_VERSION); + // As of now only delete mode is supported, for all others return false + if ("2".equals(formatVersion) && operationName.equalsIgnoreCase("delete")) { Review Comment: don't we have a constant for the "delete" operationType? Issue Time Tracking ------------------- Worklog Id: (was: 845012) Time Spent: 3h 50m (was: 3h 40m) > Iceberg: Implement Copy-On-Write for Delete Queries > --------------------------------------------------- > > Key: HIVE-27031 > URL: https://issues.apache.org/jira/browse/HIVE-27031 > Project: Hive > Issue Type: Sub-task > Reporter: Ayush Saxena > Assignee: Ayush Saxena > Priority: Major > Labels: pull-request-available > Time Spent: 3h 50m > Remaining Estimate: 0h > > Implement copy on write mode for deletes for iceberg tables -- This message was sent by Atlassian Jira (v8.20.10#820010)