You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by GitBox <gi...@apache.org> on 2020/07/27 10:36:33 UTC

[GitHub] [parquet-mr] gszadovszky commented on a change in pull request #620: PARQUET-1531: Page row count limit causes empty pages to be written from MessageColumnIO

gszadovszky commented on a change in pull request #620:
URL: https://github.com/apache/parquet-mr/pull/620#discussion_r460799987



##########
File path: parquet-column/src/main/java/org/apache/parquet/column/impl/ColumnWriterBase.java
##########
@@ -305,6 +305,9 @@ long getRowsWrittenSoFar() {
    * Writes the current data to a new page in the page store
    */
   void writePage() {
+    if (valueCount == 0) {
+      throw new ParquetEncodingException("writing empty page");

Review comment:
       You may check my answer at the referenced StackOverFlow thread.




----------------------------------------------------------------
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:
users@infra.apache.org