You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/02/18 12:19:00 UTC

[jira] [Commented] (PARQUET-1982) Allow random access to row groups in ParquetFileReader

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

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

fschmalzel opened a new pull request #871:
URL: https://github.com/apache/parquet-mr/pull/871


   Adds a method readRowGroup(BlockMetaData) to allow random access to
   PageReadStores via BlockMetaData, which can be obtained using the
   getRowGroups() method.
   
   This is similar to the existing method
   getDictionaryReader(BlockMetaData)
   that already exists.
   
   With random access the reader can be reused if for example someone
   needs to go back a row group. This would improve performance
   because we don't need to open the file again and read the metadata.
   
   Make sure you have checked _all_ steps below.
   
   ### Jira
   
   - [x ] My PR addresses the following [Parquet Jira](https://issues.apache.org/jira/browse/PARQUET-1982) issue.
   
   ### Tests
   
   - [x ] My PR adds the following unit tests:
    - TestParquetReaderRandomAccess
   
   ### Commits
   
   - [x ] 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
   
   - [x ] 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.

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


> Allow random access to row groups in ParquetFileReader
> ------------------------------------------------------
>
>                 Key: PARQUET-1982
>                 URL: https://issues.apache.org/jira/browse/PARQUET-1982
>             Project: Parquet
>          Issue Type: New Feature
>          Components: parquet-mr
>            Reporter: Felix Schmalzel
>            Priority: Minor
>              Labels: parquetReader, random-access
>
> The used SeekableInputStream and all other components of the ParquetFileReader already support random access and row groups should be independent of each other.
> This would allow reusing the opened InputStream when you want to go back a row group. It also makes accessing specific row groups a lot easier.
> I've already developed a patch that would enable this functionality. I will link the merge request in the next few days.
> Is there a related ticket that i have overlooked?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)