raulcd commented on code in PR #48008:
URL: https://github.com/apache/arrow/pull/48008#discussion_r2526523524
##########
python/pyarrow/tests/parquet/test_basic.py:
##########
@@ -993,3 +993,13 @@ def test_checksum_write_to_dataset(tempdir):
# checksum verification enabled raises an exception
with pytest.raises(OSError, match="CRC checksum verification"):
_ = pq.read_table(corrupted_file_path, page_checksum_verification=True)
+
+
[email protected](
+ "source", ["/tmp/", ["/tmp/file1.parquet", "/tmp/file2.parquet"]])
+def test_read_table_raises_value_error_when_ds_is_unavailable(monkeypatch,
source):
+ # GH-47728
+ monkeypatch.setitem(sys.modules, "pyarrow.dataset", None)
+
+ with pytest.raises(ValueError, match="the 'source' argument"):
+ pq.read_table(source=source)
Review Comment:
I've created an issue for this:
- https://github.com/apache/arrow/issues/48133
--
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]