deniskuzZ commented on code in PR #6925:
URL: https://github.com/apache/hive/pull/6925#discussion_r4700060268
##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/writer/WriterBuilder.java:
##########
@@ -86,7 +71,6 @@ private WriterBuilder(Table table, UnaryOperator<String> ops)
{
this.context = new Context(table.properties(), ops, tableName);
this.operation = HiveCustomStorageHandlerUtils.getWriteOperation(ops,
tableName);
this.copyOnWrite = HiveCustomStorageHandlerUtils.isCopyOnWrite(ops,
tableName);
Review Comment:
Same comment as the one on line 56; see the reply there:
https://github.com/apache/hive/pull/6925#discussion_r4700027969
##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/writer/WriterBuilder.java:
##########
@@ -103,6 +87,11 @@ public WriterBuilder queryId(String newQueryId) {
return this;
}
+ public WriterBuilder rewritableDeletes(Supplier<Map<String, DeleteFileSet>>
newRewritableDeletes) {
+ this.rewritableDeletes = newRewritableDeletes;
+ return this;
+ }
Review Comment:
Same comment as the one on line 56; see the reply there:
https://github.com/apache/hive/pull/6925#discussion_r4700027969
##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/writer/WriterBuilder.java:
##########
@@ -138,7 +127,7 @@ public HiveIcebergWriter build() {
} else {
writer = switch (operation) {
case DELETE ->
- new HiveIcebergDeleteWriter(table, rewritableDeletes.get(),
writerFactory, deleteFileFactory, context);
+ new HiveIcebergDeleteWriter(table, rewritableDeletes,
writerFactory, deleteFileFactory, context);
Review Comment:
Same comment as the one on line 56; see the reply there:
https://github.com/apache/hive/pull/6925#discussion_r4700027969
--
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]