Skip to content

[FEA] Add more functionality to cudf.io.read_parquet_metadata API #11214

Closed

Description

@galipremsagar

Is your feature request related to a problem? Please describe.
It would be nicer to have the row-group wise metadata returned instead of returning just the number of row-groups. That way users can identify how many rows & columns are stored in each row-group.

Activity

  1. added
    feature request
    Python
    on Jul 7, 2022
  2. self-assigned this
    on Jul 7, 2022
  3. galipremsagar commented on Jul 7, 2022

    @galipremsagar
    ContributorAuthor

    @vuule Did you intended to the same pyarrow parquet schema? Like:

    (Pdb) x = pq.ParquetFile(fname)
    (Pdb) x.metadata
    <pyarrow._parquet.FileMetaData object at 0x7fbe0a172040>
      created_by: parquet-cpp-arrow version 8.0.0
      num_columns: 15
      num_rows: 0
      num_row_groups: 1
      format_version: 1.0
      serialized_size: 7481
    
    (Pdb) x.metadata.row_group(0)
    <pyarrow._parquet.RowGroupMetaData object at 0x7fbe0a172270>
      num_columns: 15
      num_rows: 0
      total_byte_size: 196

    or do we want to extract only the necessary bit of details and return those?

  4. vuule commented on Jul 7, 2022

    @vuule
    Contributor

    I like the option to follow the pyarrow metada structure here, if it's not a huge overhead to gather.

  5. galipremsagar commented on Jul 7, 2022

    @galipremsagar
    ContributorAuthor
  6. galipremsagar commented on Jul 7, 2022

    @galipremsagar
    ContributorAuthor

    cc: @rjzamora for visibility

  7. github-actions commented on Aug 6, 2022

    @github-actions

    This issue has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d if there is no activity in the next 60 days.

  8. added
    libcudf
    cuIO
    and removed on Apr 3, 2023
  9. GregoryKimball commented on Feb 16, 2024

    @GregoryKimball
    Contributor

    That way users can identify how many rows & columns are stored in each row-group.

    Now that we have read_parquet_metadata from #13663, could we re-scope this issue to specify the changes we would like to see in the parquet_metadata class?

    As I understand, the number of columns will be identical for all row groups. We could add row counts for each row group as a new vector, or perhaps to metadata. Are the row group min/max statistics stored as key-value pairs in parquet_metadata.metadata?

  10. mhaseeb123 commented on Apr 30, 2024

    @mhaseeb123
    Contributor

    Closed by #15398

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

PythoncuIOfeature requestlibcudf

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions