gszadovszky commented on a change in pull request #852: URL: https://github.com/apache/parquet-mr/pull/852#discussion_r611595861
########## File path: parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetFileWriter.java ########## @@ -860,6 +860,10 @@ public void endColumn() throws IOException { * @throws IOException if there is an error while writing */ public void endBlock() throws IOException { + if (currentRecordCount == 0) { + throw new IOException("End block with zero record"); Review comment: @vdiravka, you might want to create a separate jira about this topic so we can discuss it in a more open way. Please, also describe what the empty parquet files are used for. -- 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: us...@infra.apache.org