Skip to content
Merged
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
6 changes: 3 additions & 3 deletions python/pyarrow/_dataset.pyx
Original file line numberDiff line numberDiff line change
Expand Up@@ -1468,7 +1468,7 @@ cdef class DirectoryPartitioning(KeyValuePartitioning):
>>> from pyarrow.dataset import DirectoryPartitioning
>>> partitioning = DirectoryPartitioning(
... pa.schema([("year", pa.int16()), ("month", pa.int8())]))
>>> print(partitioning.parse("/2009/11"))
>>> print(partitioning.parse("/2009/11/"))
((year == 2009) and (month == 11))
"""

Expand DownExpand Up@@ -1595,7 +1595,7 @@ cdef class HivePartitioning(KeyValuePartitioning):
>>> from pyarrow.dataset import HivePartitioning
>>> partitioning = HivePartitioning(
... pa.schema([("year", pa.int16()), ("month", pa.int8())]))
>>> print(partitioning.parse("/year=2009/month=11"))
>>> print(partitioning.parse("/year=2009/month=11/"))
((year == 2009) and (month == 11))

"""
Expand DownExpand Up@@ -1719,7 +1719,7 @@ cdef class FilenamePartitioning(KeyValuePartitioning):
>>> from pyarrow.dataset import FilenamePartitioning
>>> partitioning = FilenamePartitioning(
... pa.schema([("year", pa.int16()), ("month", pa.int8())]))
>>> print(partitioning.parse("2009_11_"))
>>> print(partitioning.parse("2009_11_data.parquet"))
((year == 2009) and (month == 11))
"""

Expand Down