Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion python/pyarrow/parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1529,7 +1529,11 @@ def pieces(self):
@property
def partitions(self):
warnings.warn(
_DEPR_MSG.format("ParquetDataset.partitions", ""),
_DEPR_MSG.format(
"ParquetDataset.partitions",
" Specify 'use_legacy_dataset=False' while constructing the "
"ParquetDataset, and then use the '.partitioning' attribute "
"instead."),
DeprecationWarning, stacklevel=2)
return self._partitions

Expand Down Expand Up @@ -1811,6 +1815,13 @@ def files(self):
def filesystem(self):
return self._dataset.filesystem

@property
def partitioning(self):
"""
The partitioning of the Dataset source, if discovered.
"""
return self._dataset.partitioning


_read_table_docstring = """
{0}
Expand Down