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 11:37:07 UTC

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

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


##########
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:
   ```suggestion
       data_path = str(base_path / 'data.parquet')
   ```
   
   The `tempdir` fixture is a pathlib object, so that allows to write it like the above



-- 
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