Repository navigation
build: enforce minimum Arrow and Parquet versions - #1119
Conversation
| ## 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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Is there consensus that Arrow 25 is the minimum supported version? cc @wgtmac
There was a problem hiding this comment.
I think we'll need to enforce a minimum Arrow version, as features support depend on recent upstream changes, variant is an example.
There was a problem hiding this comment.
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]>
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]>
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]>
zhjwpku
left a comment
There was a problem hiding this comment.
LGTM, thanks for fixing this.
wgtmac
left a comment
There was a problem hiding this comment.
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]>
Co-authored-by: Codex <[email protected]>
Co-authored-by: Codex <[email protected]>
Co-authored-by: Codex <[email protected]>
Co-authored-by: Codex <[email protected]>
|
Thanks @manuzhang and @zhjwpku! |
Use
ICEBERG_ARROW_BUILD_VERSIONas 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