wjones127 commented on issue #12458:
URL: https://github.com/apache/arrow/issues/12458#issuecomment-1043768987
> Can pyarrow skip merge emtpy file when index length is 0?
I don't think we have any functionality that does that.
If you don't want to change how you write your DataFrame, you can pass the
schema into `ds.dataset()` and that will ignore the empty file.
```python
import pyarrow.dataset as ds
schema = pa.schema([('A', pa.timestamp('us')), ('B', pa.float64()), ('C',
pa.string()), ('D', pa.int64())])
ds.dataset(temp_dir, schema=schema).to_table().to_pandas()
```
--
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]