[ 
https://issues.apache.org/jira/browse/PARQUET-1514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16761606#comment-16761606
 ] 

ASF GitHub Bot commented on PARQUET-1514:
-----------------------------------------

gszadovszky commented on pull request #607: PARQUET-1514: ParquetFileWriter 
Records Compressed Bytes instead of U…
URL: https://github.com/apache/parquet-mr/pull/607
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> ParquetFileWriter Records Compressed Bytes instead of Uncompressed Bytes
> ------------------------------------------------------------------------
>
>                 Key: PARQUET-1514
>                 URL: https://issues.apache.org/jira/browse/PARQUET-1514
>             Project: Parquet
>          Issue Type: Bug
>            Reporter: BELUGA BEHR
>            Assignee: BELUGA BEHR
>            Priority: Minor
>              Labels: pull-request-available
>
> As I understand it, the class {{BlockMetaData}} has a {{getTotalByteSize}} 
> and a {{getCompressedSize}}.  However, in the case of {{ParquetFileWriter}}, 
> there is one place where the compressed size is being written into 
> {{totalByteSize}} instead of the uncompressed size.  This looks incorrect.
> {code:java|title=ParquetFileWriter}
> private BlockMetaData currentBlock;
> ...
> public void appendRowGroup(SeekableInputStream from, BlockMetaData rowGroup,
>     boolean dropColumns) throws IOException {
>     ...
>     currentBlock.setTotalByteSize(blockCompressedSize);
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to