You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/04/05 12:36:01 UTC

[GitHub] [arrow] raulcd commented on a diff in pull request #12797: ARROW-13922: [Python] Fix ParquetDataset throw error when len(path_or_paths) == 1

raulcd commented on code in PR #12797:
URL: https://github.com/apache/arrow/pull/12797#discussion_r842732031


##########
python/pyarrow/tests/parquet/test_dataset.py:
##########
@@ -639,6 +639,21 @@ def test_read_directory_s3fs(s3_example_s3fs, use_legacy_dataset):
     assert result.equals(table)
 
 
+@pytest.mark.pandas
+@parametrize_legacy_dataset
+def test_read_single_file_list(tempdir, use_legacy_dataset):
+    base_path = str(tempdir)
+    data_path = os.path.join(base_path, 'data.parquet')

Review Comment:
   Thanks! I did not know you could do that. I have added a commit with a change similar to the suggested `data_path = str(base_path / 'data.parquet')`



-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org