Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the table does not load if the file path has a dot at start #25732

Closed
asfimport opened this issue Aug 9, 2020 · 0 comments
Closed

the table does not load if the file path has a dot at start #25732

asfimport opened this issue Aug 9, 2020 · 0 comments

Comments

@asfimport
Copy link
Collaborator

asfimport commented Aug 9, 2020

Please check the below code. If I uncomment line six then the table written to disk is loaded as an empty table.

Similar behavior is observed when the directory name starts with _

This was not the case in earlier versions.

 

import pyarrow.parquet as pq
 import pyarrow as pa
 import pathlib
 _path = pathlib.Path("abc").resolve()
 _path /= "xyz"
 _path /= ".lmn" # uncomment this has a 'dot' at start of the folder
 _path /= "file_name"
 pq.write_to_dataset(
     table=pa.table({"a": [1], "b": [2]}), 
     root_path=_path.as_posix()
 )
 t = pq.read_table(_path)
 print(t.to_pandas())

Environment: Windows 10
Reporter: Praveen Kulkarni
Assignee: Ben Kietzman / @bkietz

Related issues:

Note: This issue was originally created as ARROW-9675. Please see the migration documentation for further details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants