AlenkaF commented on code in PR #39593:
URL: https://github.com/apache/arrow/pull/39593#discussion_r1461593226
##########
python/pyarrow/tests/test_dataset.py:
##########
@@ -701,6 +701,16 @@ def test_partitioning():
load_back_table = load_back.to_table()
assert load_back_table.equals(table)
+ # test invalid partitioning input
+ with tempfile.TemporaryDirectory() as tempdir:
+ partitioning = ds.DirectoryPartitioning(partitioning_schema)
+ ds.write_dataset(table, tempdir,
+ format='ipc', partitioning=partitioning)
+ load_back = None
+ with pytest.raises(ValueError):
Review Comment:
```suggestion
with pytest.raises(ValueError,
match="Expected Partitioning or
PartitioningFactory"):
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]