Skip to content

Compilation Error Due to Deprecated OpenFile API in Arrow 21.0.0+ #4766

Closed

Description

@ShreyasKhandekar

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:

  1. Build Arkouda with Arrow/pyarrow version 21.0.0 or higher
  2. 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.

Activity

  1. added
    bug
    Dependency Update
    on Aug 6, 2025
  2. ShreyasKhandekar commented on Aug 6, 2025

    @ShreyasKhandekar
    ContributorAuthor

    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.

  3. removed their assignment
    on Aug 6, 2025
  4. jabraham17 commented on May 13, 2026

    @jabraham17
    Contributor

    This bug was resolved in #5147

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Dependency Updatebug

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions