You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Compilation Error Due to Deprecated OpenFile API in Arrow 21.0.0+ #4766
Describe the bug
Arkouda fails to compile when using Apache Arrow 21.0.0 or later due to a removed API: parquet::arrow::OpenFile. The version currently used in UtilParquet.cpp accepts three arguments and returns an arrow::Status, which was deprecated in Arrow 19.0.0 and removed entirely in Arrow 21.0.0.
To Reproduce
Steps to reproduce the behavior:
Build Arkouda with Arrow/pyarrow version 21.0.0 or higher
See error
Expected behavior
Compilation should complete successfully, regardless of Arrow version, or fail gracefully with a clear version requirement.
Error Message
Multiple instances of the same error:
/Users/name/arkouda/src/parquet/UtilParquet.cpp:464:20: error: too many arguments to function call, expected 2, have 3; did you mean 'parquet::ParquetFileReader::OpenFile'?
464 | ARROWSTATUS_OK(parquet::arrow::OpenFile(infile, arrow::default_memory_pool(), &reader));
| ^~~~~~~
| parquet::ParquetFileReader::OpenFile
Is this a Blocking Issue
Yes, this prevents Arkouda from building with newer versions of Arrow.
Are there any known work-arounds? Yes
If a known work around exists, please provide a code block demonstrating it.
Restrict pyarrow and Arrow C++ versions to <21.0.0.
ak.get_config() Output
N/A (build failure occurs before Arkouda can be run)
Proposed Fix
The deprecated OpenFile method was removed in Arrow 21.0.0. Its usage in UtilParquet.cpp needs to be updated to the new API (which returns an arrow:Result rather than arrow:Status). Until then, we should restrict Arrow/pyarrow versions to a range that includes the deprecated method. See Arrow 20.0.0 API docs for reference.
See Arrow Stable Docs for the new OpenFile function that we need to use as a replacement. Alternatively we could use parquet::arrow::FileReaderBuilder or equivalent API introduced to replace OpenFile.
I've created a PR with my workaround for this. Ideally we should support the latest version of arrow, but that's beyond my scope here. I'm unassigning myself from this issue now.
Activity
Specify pyarrow version constraints in arkouda-env-dev.yml
Specify pyarrow version constraints in arkouda-env.yml
ShreyasKhandekar commentedon Aug 6, 2025
I've created a PR with my workaround for this. Ideally we should support the latest version of arrow, but that's beyond my scope here. I'm unassigning myself from this issue now.
Patch Arrow dependecy issue (#4769)
Patch Arrow dependecy issue (Bears-R-Us#4769)
jabraham17 commentedon May 13, 2026
This bug was resolved in #5147