Skip to content

build: enforce minimum Arrow and Parquet versions - #1119

Merged
wgtmac merged 9 commits into
apache:mainfrom
manuzhang:build/vendor-dependencies-by-default
Nov 26, 2026
Merged

wgtmac merged 9 commits into
apache:mainfrom
manuzhang:build/vendor-dependencies-by-default

Conversation

@manuzhang

@manuzhang manuzhang commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Use ICEBERG_ARROW_BUILD_VERSION as the minimum version for installed Arrow and Parquet, both when building Iceberg and when loading its installed CMake package. Pass the minimum Arrow version to FetchContent's package lookup so an older installation is skipped before the build.

Document how to force a source build even when Arrow is installed using -DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=NEVER.

Validation

  • Verified on macOS with CMake 4.3.2 that a compatible installed Arrow is accepted, older Arrow falls back to source, older Parquet is rejected, and explicit vendoring works.
  • Verified that the installed Iceberg CMake config accepts compatible dependencies and rejects older Arrow or Parquet.
  • Pre-commit passed.

Copilot AI balanced review requested due to automatic review settings November 13, 2026 04:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@manuzhang
manuzhang requested review from wgtmac and zhjwpku November 13, 2026 04:49
@manuzhang

Copy link
Copy Markdown
Member Author

@zhjwpku @wgtmac I spotted this while reviewing #1112 and #1114, both of which require arrow 25 API while my local build still uses arrow 23.

Comment thread mkdocs/docs/getting-started.md Outdated
## Build with CMake

Dependencies managed with CMake FetchContent use the pinned sources by default.
Set `-DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=OPT_IN` to try installed packages before

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm wondering when user set this to OPT_IN with a unsupported installed package, will it pass the cmake configuration phase? If yes, should we error out earlier by adding versions to FIND_PACKAGE_ARGS?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Is there consensus that Arrow 25 is the minimum supported version? cc @wgtmac

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we'll need to enforce a minimum Arrow version, as features support depend on recent upstream changes, variant is an example.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think we will soon bump the minimum version of Arrow once we have merged Variant support of Parquet.

Keep the minimum supported Arrow version separate from the vendored source
version. Check it during FetchContent lookup, explicit Arrow and Parquet
lookup, and installed Iceberg dependency discovery.

Document source fallback for unsupported installed Arrow packages and the
configuration error for unsupported Parquet packages.

Co-authored-by: Codex <[email protected]>
@manuzhang manuzhang changed the title build: vendor FetchContent dependencies by default build: vendor dependencies by default and require Arrow 25 Nov 17, 2026
Keep the minimum-version explanation in the getting-started guide and
refer to the configured requirement instead of duplicating its value.

Co-authored-by: Codex <[email protected]>
@manuzhang manuzhang changed the title build: vendor dependencies by default and require Arrow 25 build: vendor dependencies by default and enforce minimum Arrow version Nov 17, 2026
Use the source build version as the minimum accepted Arrow and Parquet
package version in build and installed-package lookups. Remove the
separate minimum-version setting and update the guide reference.

Co-authored-by: Codex <[email protected]>
@manuzhang
manuzhang requested a review from zhjwpku November 17, 2026 08:33

@zhjwpku zhjwpku left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks for fixing this.

@wgtmac wgtmac left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm still hesitant to merge this PR since FETCHCONTENT_TRY_FIND_PACKAGE_MODE is a standard CMake option so it is not a best practice to change its default value. A side effect is that it will change the default behavior of its parent project. I'm more supportive to enhance the document by letting users know how to switch to different modes explicitly.

Keep the minimum Arrow and Parquet version checks and document how callers
can opt out of installed-package lookup.

Co-authored-by: Codex <[email protected]>
@manuzhang manuzhang changed the title build: vendor dependencies by default and enforce minimum Arrow version build: enforce minimum Arrow and Parquet versions Nov 26, 2026
@manuzhang
manuzhang requested review from wgtmac and zhjwpku November 26, 2026 09:20
@wgtmac
wgtmac merged commit c47f2a4 into apache:main Nov 26, 2026
15 checks passed
@wgtmac

wgtmac commented Nov 26, 2026

Copy link
Copy Markdown
Member

Thanks @manuzhang and @zhjwpku!

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.

4 participants