apache / apache/arrow

[Python] pyarrow write_dataset @max_open_files not closing files

Open
#38,427 18 comments 1 reaction 0 assignees View on GitHub
Component: Python Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the bug, including details regarding any error messages, version, and platform.

We have ulimit(s) set in linux so I tried using the @max_open_file parameter in pyarrow.Dataset.write_dataset().

My python program just hangs and it seems like the write_dataset() function is not closing files so it can't open new ones..
I can see the amount of files written appears to be exactly double when @max_open_files is set to double before everything hangs..

I'm also writing out partioned data in the following directory structure:
parted_parquet/end_date_year=2019/end_date_month=9/end_date_day=9/flows.0.parquet

with max_open_files = 256
du -h -s parted_parquet
1.3G parted_parquet

with max_open_files = 128
du -h -s parted_parquet
686M parted_parquet

### Component(s)

Python

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.