rdblue commented on a change in pull request #2114:
URL: https://github.com/apache/iceberg/pull/2114#discussion_r560611336



##########
File path: 
spark/src/main/java/org/apache/iceberg/spark/source/RowDataRewriter.java
##########
@@ -103,8 +103,8 @@ public RowDataRewriter(Table table, PartitionSpec spec, 
boolean caseSensitive,
     OutputFileFactory fileFactory = new OutputFileFactory(
         spec, format, locations, io.value(), encryptionManager.value(), 
partitionId, taskId);
 
-    TaskWriter<InternalRow> writer;
-    if (spec.fields().isEmpty()) {
+    final TaskWriter<InternalRow> writer;

Review comment:
       What IDE? IntelliJ catches it without `finally`:
   
![warning-cropped](https://user-images.githubusercontent.com/87915/105114230-4fba0380-5a7b-11eb-86af-eb3bee72a896.png)
   




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

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to