Skip to content

[GLUTEN-8397][CH][Part-1]: Disable hdfs while compiling clickhouse backend on macOS#8400

Merged
baibaichen merged 3 commits intoapache:mainfrom
yxheartipp:mac-cross-compile
Jan 6, 2025
Merged

[GLUTEN-8397][CH][Part-1]: Disable hdfs while compiling clickhouse backend on macOS#8400
baibaichen merged 3 commits intoapache:mainfrom
yxheartipp:mac-cross-compile

Conversation

@yxheartipp
Copy link
Copy Markdown
Contributor

Fixes: #8397
Disable hdfs while compiling clickhouse backend on macOS.
There will be no change for origin tests.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 2, 2025

Thanks for opening a pull request!

Could you open an issue for this pull request on Github Issues?

https://github.com/apache/incubator-gluten/issues

Then could you also rename commit message and pull request title in the following format?

[GLUTEN-${ISSUES_ID}][COMPONENT]feat/fix: ${detailed message}

See also:

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 2, 2025

Run Gluten Clickhouse CI on x86

set(CMAKE_SHARED_LINKER_FLAGS
"${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-export-dynamic -Wl,--gc-sections")

if (LINUX)
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.

please sepcify macOS logic

target_link_options(
${LOCALENGINE_SHARED_LIB} PRIVATE
-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/libch-hide-jemalloc.map)
if(LINUX)
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.

as above

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 6, 2025

Run Gluten Clickhouse CI on x86

@lwz9103
Copy link
Copy Markdown
Member

lwz9103 commented Jan 6, 2025

@baibaichen Can you help to review this PR?

@baibaichen baibaichen changed the title [CH]: Disable hdfs while compiling clickhouse backend on macOS [GLUTEN-8397][CH][Part-1]: Disable hdfs while compiling clickhouse backend on macOS Jan 6, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 6, 2025

#8397


auto * addresses = env->NewLongArray(bs.block_addresses.size());
env->SetLongArrayRegion(addresses, 0, bs.block_addresses.size(), bs.block_addresses.data());
env->SetLongArrayRegion(addresses, 0, bs.block_addresses.size(), (const jlong *)bs.block_addresses.data());
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.

using static_cast

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.

may be reinterpret_cast

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.

may be reinterpret_cast

let's use static_cast first for safety

auto * offsets_arr = env->NewLongArray(spark_row_info.getNumRows());
const auto * offsets_src = spark_row_info.getOffsets().data();
env->SetLongArrayRegion(offsets_arr, 0, spark_row_info.getNumRows(), offsets_src);
env->SetLongArrayRegion(offsets_arr, 0, spark_row_info.getNumRows(), (const jlong *)offsets_src);
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.

static_cast

// Increase the speed of metadata recovery
auto max_concurrency = std::max(10UL, QueryContext::globalContext()->getSettingsRef()[Setting::max_threads].value);
auto max_threads = std::min(max_concurrency, not_exists_part.size());
auto max_concurrency = std::max(static_cast<UInt64>(10UL), QueryContext::globalContext()->getSettingsRef()[Setting::max_threads].value);
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.

remove UL suffix

Copy link
Copy Markdown
Contributor

@taiyang-li taiyang-li left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 6, 2025

Run Gluten Clickhouse CI on x86

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 6, 2025

Run Gluten Clickhouse CI on x86

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 6, 2025

Run Gluten Clickhouse CI on x86

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 6, 2025

Run Gluten Clickhouse CI on x86

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 6, 2025

Run Gluten Clickhouse CI on x86

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 6, 2025

Run Gluten Clickhouse CI on x86

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 6, 2025

Run Gluten Clickhouse CI on x86

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CH][UMBRELLA] Support building on MacOS

5 participants