Skip to content

FutureWarning: 'ParquetDataset.partitions' attribute is deprecated as of pyarrow 5.0.0 and will be removed in a future version. #800

@ton11111

Description

@ton11111

When I call make_reader, I keep getting the following warning in each epoch. Will this be fixed in the future?

Code

  from petastorm import make_reader
  from petastorm.pytorch import DataLoader

  reader = make_reader(
      dataset_url=f"file://train.parquet",
      shuffle_rows=False
  )
  return DataLoader(reader, batch_size=128)

Warning

/opt/conda/lib/python3.9/site-packages/petastorm/py_dict_reader_worker.py:267: FutureWarning: 'ParquetDataset.partitions' attribute is deprecated as of pyarrow 5.0.0 and will be removed in a future version. Specify 'use_legacy_dataset=False' while constructing the ParquetDataset, and then use the '.partitioning' attribute instead.

Here is my version.
pyarrow: 13.0.0
petastorm: 0.12.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions