Skip to content

Closes #5146: Update Parquet file reading to use Arrow Result-returning OpenFile API - #5147

Merged
ajpotts merged 1 commit into
Bears-R-Us:mainfrom
1RyanK:5146-Update_Parquet_file_reading_to_use_Arrow_Result-returning_OpenFile_API
Dec 13, 2025
Merged

ajpotts merged 1 commit into
Bears-R-Us:mainfrom
1RyanK:5146-Update_Parquet_file_reading_to_use_Arrow_Result-returning_OpenFile_API

Conversation

@1RyanK

@1RyanK 1RyanK commented Dec 11, 2025

Copy link
Copy Markdown
Contributor

Modernize Parquet file reading to Arrow’s Result-returning API

This PR updates all uses of parquet::arrow::OpenFile in UtilParquet.cpp to the non-deprecated Arrow 19+ API. The old API wrote into a FileReader* via an out-parameter, while the new API returns:

arrow::Result<std::unique_ptr<parquet::arrow::FileReader>>

Key changes

  • Replaced all instances of:

    ARROWSTATUS_OK(parquet::arrow::OpenFile(..., &reader));

    with:

    ARROWRESULT_OK(parquet::arrow::OpenFile(...), reader);
  • Updated the ARROWRESULT_OK macro to use:

    res = std::move(result.ValueOrDie());

    to correctly extract the move-only unique_ptr returned by Arrow.

Why this change is needed

  • Removes Arrow 19 deprecation warnings from the build.
  • Aligns Arkouda’s Parquet integration with the current Arrow API.
  • Makes future Arrow upgrades simpler.
  • No changes to behavior or performance; this is purely an API modernization.

Notes

  • All existing error-handling behavior remains unchanged.
  • No impact to downstream Chapel code or server behavior.

Closes #5146: Update Parquet file reading to use Arrow Result-returning OpenFile API

@ajpotts ajpotts left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this!

@jaketrookman jaketrookman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@1RyanK
1RyanK force-pushed the 5146-Update_Parquet_file_reading_to_use_Arrow_Result-returning_OpenFile_API branch from c5c7902 to e3f26bd Compare December 13, 2025 00:36
@ajpotts
ajpotts added this pull request to the merge queue Dec 13, 2025
Merged via the queue into Bears-R-Us:main with commit 6229674 Dec 13, 2025
@ShreyasKhandekar

ShreyasKhandekar commented Dec 15, 2025 •

Copy link
Copy Markdown
Contributor

This is great!

If I understand correctly, since we've moved to the new OpenFile API, this should also resolve #4766 and therefore we no longer have to limit the Arrow version to be less than 21. Which means we can revert #4769.

Does that match your understanding @1RyanK?

@1RyanK

1RyanK commented Dec 15, 2025

Copy link
Copy Markdown
Contributor Author

This is great!

If I understand correctly, since we've moved to the new OpenFile API, this should also resolve #4766 and therefore we no longer have to limit the Arrow version to be less than 21. Which means we can revert #4769.

Does that match your understanding @1RyanK?

It certainly looks like it might, at a cursory glance!

jabraham17 added a commit to jabraham17/arkouda that referenced this pull request May 14, 2026
Unpins pyarrow versions, which should have been done after
Bears-R-Us#5147 but was not

Signed-off-by: Jade Abraham <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Parquet file reading to use Arrow Result-returning OpenFile API

4 participants