-
Notifications
You must be signed in to change notification settings - Fork 369
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
[GLUTEN-4483][CH]Improve divide function #4484
Conversation
Run Gluten Clickhouse CI |
2 similar comments
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
@@ -63,6 +63,7 @@ include_directories( | |||
${CMAKE_CURRENT_BINARY_DIR}/proto | |||
${THRIFT_INCLUDE_DIR} | |||
${CMAKE_BINARY_DIR}/contrib/thrift-cmake | |||
${CMAKE_BINARY_DIR}/contrib/llvm-project/llvm/include |
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.
why this?
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.
if not add this, while compile code, will has the excpeiton 'llvm/IR/IRBuilder.h' file can not be found, as this is defined in FunctionBinaryArithmetic.h
.
@@ -72,6 +73,8 @@ include_directories( | |||
${ClickHouse_SOURCE_DIR}/contrib/azure/sdk/storage/azure-storage-blobs/inc | |||
${ClickHouse_SOURCE_DIR}/contrib/azure/sdk/core/azure-core/inc | |||
${ClickHouse_SOURCE_DIR}/contrib/azure/sdk/storage/azure-storage-common/inc | |||
${ClickHouse_SOURCE_DIR}/contrib/llvm-project/llvm/include |
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.
why this?
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.
as above mentioned
R r = vec2->getElement(i); | ||
if (r == 0) | ||
{ | ||
data[i] = 0; |
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.
no need
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.
done
Run Gluten Clickhouse CI |
5aa438b
to
d04ddf0
Compare
Run Gluten Clickhouse CI |
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This PR was auto-closed because it has been stalled for 10 days with no activity. Please feel free to reopen if it is still valid. Thanks. |
reopen |
What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
(Fixes: #4483)
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
性能测试,通过开发完成的 benchmark_spark_divide_function.cpp 测试 新的divide 函数, 对比CH 的divide函数,以及过去使用FunctionParser的divide 的性能差异,如下
可见, 新的
SparkDivideFunction
相对于CH 的Divide
大约有10% 左右的提升,相对于Gluten 的FunctionParser
的实现约有30% ~ 40% 左右的提升