Skip to content

[Python] exception not being raised if passed an invalid partitiong on _ensure_partitioning #39579

@idailylife

Description

@idailylife

Describe the bug, including details regarding any error messages, version, and platform.

It seems to be a typo at line 295 of python/pyarrow/dataset.py, which misses a "raise"

def _ensure_partitioning(scheme):
    ...
    else:
        ValueError(...)

# which should be
    else:
        raise ValueError(...)

Component(s)

Python

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions