Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 3.9k
[fix](paimon) install paimon-cpp arrow static deps into isolated dir#60730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
6b757a05b821286687f97d6c7652c13a9ed8121303f8729994d8c29bFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -2028,6 +2028,21 @@ build_paimon_cpp() { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # These libraries are built but not installed by default | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| echo "Installing paimon-cpp internal dependencies..." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Install paimon-cpp Arrow deps used by paimon parquet static libs. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| # Keep them in an isolated directory to avoid clashing with Doris Arrow. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| local paimon_deps_dir="${TP_INSTALL_DIR}/paimon-cpp/lib64/paimon_deps" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mkdir -p "${paimon_deps_dir}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| for paimon_arrow_dep in \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| libarrow.a \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| libarrow_filesystem.a \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| libarrow_dataset.a \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| libarrow_acero.a \ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| libparquet.a; do | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| if [ -f "arrow_ep-install/lib/${paimon_arrow_dep}" ]; then | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| cp -v "arrow_ep-install/lib/${paimon_arrow_dep}" "${paimon_deps_dir}/${paimon_arrow_dep}" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CopilotAI | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| cp -v "arrow_ep-install/lib/${paimon_arrow_dep}""${paimon_deps_dir}/${paimon_arrow_dep}" | |
| cp -v "arrow_ep-install/lib/${paimon_arrow_dep}""${paimon_deps_dir}/${paimon_arrow_dep}" | |
| else | |
| echo"Warning: expected Arrow static library 'arrow_ep-install/lib/${paimon_arrow_dep}' not found; paimon-cpp static linking may fail if this archive is required.">&2 |
CopilotAIFeb 13, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The paths hardcode both the destination libdir (lib64) and the Arrow EP libdir (arrow_ep-install/lib). This makes the logic brittle if the build outputs to lib64 (or a different layout) in some environments/configurations. Consider deriving the lib directory from existing build variables (or probing arrow_ep-install/lib64 vs .../lib) and using a single computed arrow_lib_dir/paimon_lib_dir to avoid repeated assumptions.
| local paimon_deps_dir="${TP_INSTALL_DIR}/paimon-cpp/lib64/paimon_deps" | |
| mkdir -p "${paimon_deps_dir}" | |
| forpaimon_arrow_depin \ | |
| libarrow.a \ | |
| libarrow_filesystem.a \ | |
| libarrow_dataset.a \ | |
| libarrow_acero.a \ | |
| libparquet.a;do | |
| if [ -f"arrow_ep-install/lib/${paimon_arrow_dep}" ];then | |
| cp -v "arrow_ep-install/lib/${paimon_arrow_dep}""${paimon_deps_dir}/${paimon_arrow_dep}" | |
| fi | |
| done | |
| # Install roaring_bitmap, renamed to avoid conflict with Doris's croaringbitmap | |
| if [ -f"release/libroaring_bitmap.a" ];then | |
| cp -v "release/libroaring_bitmap.a""${TP_INSTALL_DIR}/lib64/libroaring_bitmap_paimon.a" | |
| # Determine paimon-cpp library directory (lib vs lib64) | |
| local paimon_lib_root="${TP_INSTALL_DIR}/paimon-cpp" | |
| local paimon_lib_dir="${paimon_lib_root}/lib" | |
| if [ !-d"${paimon_lib_dir}" ];then | |
| paimon_lib_dir="${paimon_lib_root}/lib64" | |
| fi | |
| local paimon_deps_dir="${paimon_lib_dir}/paimon_deps" | |
| mkdir -p "${paimon_deps_dir}" | |
| # Determine Arrow EP library directory (lib vs lib64) | |
| local arrow_lib_dir="arrow_ep-install/lib" | |
| if [ !-d"${arrow_lib_dir}" ];then | |
| arrow_lib_dir="arrow_ep-install/lib64" | |
| fi | |
| forpaimon_arrow_depin \ | |
| libarrow.a \ | |
| libarrow_filesystem.a \ | |
| libarrow_dataset.a \ | |
| libarrow_acero.a \ | |
| libparquet.a;do | |
| if [ -f"${arrow_lib_dir}/${paimon_arrow_dep}" ];then | |
| cp -v "${arrow_lib_dir}/${paimon_arrow_dep}""${paimon_deps_dir}/${paimon_arrow_dep}" | |
| fi | |
| done | |
| # Install roaring_bitmap, renamed to avoid conflict with Doris's croaringbitmap | |
| # Determine top-level TP lib directory (lib vs lib64) | |
| local tp_lib_dir="${TP_INSTALL_DIR}/lib" | |
| if [ !-d"${tp_lib_dir}" ];then | |
| tp_lib_dir="${TP_INSTALL_DIR}/lib64" | |
| fi | |
| if [ -f"release/libroaring_bitmap.a" ];then | |
| cp -v "release/libroaring_bitmap.a""${tp_lib_dir}/libroaring_bitmap_paimon.a" |
Uh oh!
There was an error while loading. Please reload this page.
CopilotAIFeb 13, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The paths hardcode both the destination libdir (
lib64) and the Arrow EP libdir (arrow_ep-install/lib). This makes the logic brittle if the build outputs tolib64(or a different layout) in some environments/configurations. Consider deriving the lib directory from existing build variables (or probingarrow_ep-install/lib64vs.../lib) and using a single computedarrow_lib_dir/paimon_lib_dirto avoid repeated assumptions.