deniskuzZ commented on code in PR #6701: URL: https://github.com/apache/hive/pull/6701#discussion_r3893807727
##########
iceberg/iceberg-handler/src/main/java/org/apache/iceberg/mr/hive/writer/WriterBuilder.java:
##########
@@ -73,6 +73,7 @@ public class WriterBuilder {
private TaskAttemptID attemptID;
private String queryId;
private Operation operation;
Review Comment:
should we rename to writeOperation for consistency
````
// WriterBuilder
private Operation writeOperation;
// was: operation
this.writeOperation = HiveCustomStorageHandlerUtils.getWriteOperation(ops,
tableName);
public WriterBuilder writeOperation(Operation newWriteOperation) {
// was: operation(...)
this.writeOperation = newWriteOperation;
return this;
}
boolean isCOW = IcebergTableUtil.isCopyOnWriteMode(
ObjectUtils.defaultIfNull(statementOperation, writeOperation),
table.properties()::getOrDefault);
writer = switch (writeOperation) { ... }
````
maybe also rename
TestHiveIcebergDeleteWriter.java:108 .operation(...) ->
.writeOperation(...)
TestHiveIcebergOutputCommitter.java:279 .operation(...) ->
.writeOperation(...)
Consider rename the builder method too, not just the field.
Same applies to the operation local in HiveIcebergSerDe.projectedSchema
(line 161) once you add the statement operation there for finding 4 — rename it
writeOperation in the same pass.
--
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]
