Skip to content

[BUG] read_parquet fails with skiprows option when reading nested data  #9970

Closed

Description

@devavret

read_parquet works when reading the entire file but fails with skiprows option when reading nested data. This issue seems related to #7113 but the cause for that was failure to read non-nested data.

The file is larger than github's upload limit so please message me for it.

Repro:

In [1]: import cudf

In [2]: cudf.read_parquet("bench.parquet")
Out[2]: 
       _col0  _col1  _col2  ...            _col17  _col18                                             _col19
0        -11    101  -6419  ...    23699376336850   False  [[-23736.0, -23736.0, 55394.0, 55394.0, 55394....
1        -11    101  -6419  ...    23699376336850   False  [[55394.0, -35731.0, -35731.0, -35731.0, -3573...
2        -11    -52  -6419  ...  3149805436179017   False  [[55560.0, 55560.0, 55560.0, 55560.0, 170.0, 1...
3        -11    119  -6419  ...  3149805436179017   False  [[], [-9300.0, -9300.0, -9300.0, -9300.0, -930...
4         -7    119  -6419  ...  3149805436179017   False  [[39501.0, 39501.0, 52975.0, 52975.0, 52975.0,...
...      ...    ...    ...  ...               ...     ...                                                ...
136464    -1    -30  -1968  ...  6835210306701067    True  [[-46225.0, -46225.0, -46225.0, -78179.0, -781...
136465    -1    -30  -1968  ...  6835210306701067    True  [[-46291.0, 584.0, 584.0, 584.0, 14065.0, 1406...
136466    -1    -30  -1968  ...  6566685436880793    True  [[8356.0, 8356.0, 8356.0, 8356.0, 8356.0, -402...
136467   -11    154  -1968  ...  6566685436880793    True  [[-24753.0, -24753.0, -24753.0, -24753.0, -247...
136468   -11    154  16133  ...  1473455178346677    True  [[15908.0], [15908.0, 15908.0], [15908.0, 584....

[136469 rows x 20 columns]

In [3]: cudf.read_parquet("bench.parquet", skiprows=10)
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-3-6f14733e2de2> in <module>
----> 1 cudf.read_parquet("bench.parquet", skiprows=10)

~/miniconda3/envs/cudf_dev/lib/python3.8/site-packages/cudf/io/parquet.py in read_parquet(filepath_or_buffer, engine, columns, filters, row_groups, skiprows, num_rows, strings_to_categorical, use_pandas_metadata, use_python_file_object, categorical_partitions, *args, **kwargs)
    541             )
    542 
--> 543     return _parquet_to_frame(
    544         filepaths_or_buffers,
    545         engine,

~/miniconda3/envs/cudf_dev/lib/python3.8/site-packages/cudf/io/parquet.py in _parquet_to_frame(paths_or_buffers, row_groups, partition_keys, partition_categories, *args, **kwargs)
    569     # one call to `_read_parquet`
    570     if not partition_keys:
--> 571         return _read_parquet(
    572             paths_or_buffers, *args, row_groups=row_groups, **kwargs,
    573         )

~/miniconda3/envs/cudf_dev/lib/python3.8/site-packages/cudf/io/parquet.py in _read_parquet(filepaths_or_buffers, engine, columns, row_groups, skiprows, num_rows, strings_to_categorical, use_pandas_metadata, *args, **kwargs)
    667                         _check_decimal128_type(arrow_type)
    668 
--> 669         return libparquet.read_parquet(
    670             filepaths_or_buffers,
    671             columns=columns,

cudf/_lib/parquet.pyx in cudf._lib.parquet.read_parquet()

cudf/_lib/parquet.pyx in cudf._lib.parquet.read_parquet()

RuntimeError: cuDF failure at: /home/devavret/Developer/rapids/cudf/cpp/src/table/table.cpp:42: Column size mismatch: 136459 != 136469

Activity

  1. added
    bug
    Needs Triage
    cuIO
    on Jan 4, 2022
  2. devavret commented on Jan 5, 2022

    @devavret
    ContributorAuthor
  3. github-actions commented on Feb 4, 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.

  4. nvdbaranec commented on Feb 4, 2022

    @nvdbaranec
    Contributor

    Issue is still relevant.

  5. github-actions commented on Mar 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.

  6. nvdbaranec commented on Mar 7, 2022

    @nvdbaranec
    Contributor

    Still relevant.

  7. self-assigned this
    on Mar 23, 2022
  8. github-actions commented on Apr 26, 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.

  9. nvdbaranec commented on Apr 26, 2022

    @nvdbaranec
    Contributor

    Still relevant.

  10. removed
    Needs Triage
    on Jun 24, 2022
  11. PointKernel commented on Aug 10, 2022

    @PointKernel
    Member

    Close as the feature is no longer supported.

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

Metadata

Metadata

Assignees

Labels

bugcuIO

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions