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



##########
File path: parquet/src/main/java/org/apache/iceberg/parquet/ParquetWriter.java
##########
@@ -170,6 +181,9 @@ private void flushRowGroup(boolean finished) {
   }
 
   private void startRowGroup() {
+    if (this.closed) {
+      throw new IllegalStateException("writer is closed");
+    }
     try {
       this.nextRowGroupSize = Math.min(writer.getNextRowGroupSize(), 
targetRowGroupSize);
     } catch (IOException e) {

Review comment:
       Can you add a blank line between control flow blocks?




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