You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "ConeyLiu (via GitHub)" <gi...@apache.org> on 2023/08/31 10:09:18 UTC

[GitHub] [parquet-mr] ConeyLiu opened a new pull request, #1136: PARQUET-2343: Fixes NPE when rewriting file with multiple rowgroups

ConeyLiu opened a new pull request, #1136:
URL: https://github.com/apache/parquet-mr/pull/1136

   Currently, the ParquetRewiter creates the `ColumnReadStoreImpl crStore` and reuses it for all the blocks rewriting. This should be incorrect and we should create the `crStore` for each block that needs to be rewritten. Otherwise, we will fail as the following:
   ```java
   java.lang.NullPointerException
   at org.apache.parquet.column.impl.ColumnReaderBase.readPage(ColumnReaderBase.java:620)
   at org.apache.parquet.column.impl.ColumnReaderBase.checkRead(ColumnReaderBase.java:594)
   at org.apache.parquet.column.impl.ColumnReaderBase.consume(ColumnReaderBase.java:735)
   at org.apache.parquet.column.impl.ColumnReaderImpl.consume(ColumnReaderImpl.java:30)
   at org.apache.parquet.column.impl.ColumnReaderImpl.<init>(ColumnReaderImpl.java:47)
   at org.apache.parquet.column.impl.ColumnReadStoreImpl.getColumnReader(ColumnReadStoreImpl.java:82)
   at org.apache.parquet.hadoop.rewrite.ParquetRewriter.processBlocksFromReader(ParquetRewriter.java:316)
   at org.apache.parquet.hadoop.rewrite.ParquetRewriter.processBlocks(ParquetRewriter.java:250)
   ```
   
   ### Jira
   
   - [ ] My PR addresses the following [Parquet Jira](https://issues.apache.org/jira/browse/PARQUET/) issues and references them in the PR title. For example, "PARQUET-1234: My Parquet PR"
     - https://issues.apache.org/jira/browse/PARQUET-XXX
     - In case you are adding a dependency, check if the license complies with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
   
   ### Tests
   
   - [ ] My PR adds the following unit tests __OR__ does not need testing for this extremely good reason:
   
   ### Commits
   
   - [ ] My commits all reference Jira issues in their subject lines. In addition, my commits follow the guidelines from "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)":
     1. Subject is separated from body by a blank line
     1. Subject is limited to 50 characters (not including Jira issue reference)
     1. Subject does not end with a period
     1. Subject uses the imperative mood ("add", not "adding")
     1. Body wraps at 72 characters
     1. Body explains "what" and "why", not "how"
   
   ### Documentation
   
   - [ ] In case of new functionality, my PR adds documentation that describes how to use it.
     - All the public functions and the classes in the PR contain Javadoc that explain what it does
   


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

To unsubscribe, e-mail: dev-unsubscribe@parquet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [parquet-mr] ConeyLiu commented on pull request #1136: PARQUET-2343: Fixes NPE when rewriting file with multiple rowgroups

Posted by "ConeyLiu (via GitHub)" <gi...@apache.org>.
ConeyLiu commented on PR #1136:
URL: https://github.com/apache/parquet-mr/pull/1136#issuecomment-1700757199

   Hi @wgtmac, could you help to review this? Thanks a lot.


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

To unsubscribe, e-mail: dev-unsubscribe@parquet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [parquet-mr] wgtmac merged pull request #1136: PARQUET-2343: Fixes NPE when rewriting file with multiple rowgroups

Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac merged PR #1136:
URL: https://github.com/apache/parquet-mr/pull/1136


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

To unsubscribe, e-mail: dev-unsubscribe@parquet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [parquet-mr] ConeyLiu commented on pull request #1136: PARQUET-2343: Fixes NPE when rewriting file with multiple rowgroups

Posted by "ConeyLiu (via GitHub)" <gi...@apache.org>.
ConeyLiu commented on PR #1136:
URL: https://github.com/apache/parquet-mr/pull/1136#issuecomment-1704864826

   Thanks @wgtmac for merging this.


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

To unsubscribe, e-mail: dev-unsubscribe@parquet.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org