Praveen Kulkarni created ARROW-9675:
---------------------------------------

             Summary: the table does not load if the file path has a dot at 
start 
                 Key: ARROW-9675
                 URL: https://issues.apache.org/jira/browse/ARROW-9675
             Project: Apache Arrow
          Issue Type: Bug
          Components: Python
    Affects Versions: 1.0.0
         Environment: Windows 10
            Reporter: Praveen Kulkarni
             Fix For: 1.0.0


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

 

```python

import pyarrow.parquet as pq
import pyarrow as pa
import pathlib
_path = pathlib.Path("abc").resolve()
_path /= "xyz"
# _path /= ".lmn" # uncomment this
_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())

```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to