-
Notifications
You must be signed in to change notification settings - Fork 442
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
[VL] Respect spark.gluten.sql.debug in native side #3748
Conversation
Thanks for opening a pull request! Could you open an issue for this pull request on Github Issues? https://github.com/oap-project/gluten/issues Then could you also rename commit message and pull request title in the following format?
See also: |
Run Gluten Clickhouse CI |
We could use velox config lib in whole velox dir. |
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
I think CI failure does not related with this patch. @zhztheplayer |
Run Gluten Clickhouse CI |
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.
Looks good! Thanks!
@PHILO-HE seems your CI machine has problems. |
It should work now. Let's wait for the re-triggered CI jobs. |
@PHILO-HE please review again, thank you! |
Looks good! Code conflict is reported. Please do a rebase again. Thanks! |
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
cc @rui-mo @ulysses-you thank you! |
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.
Thanks!
/// Parse and cache the plan. | ||
/// Return true if parsed successfully. | ||
void parsePlan(const uint8_t* data, int32_t size, SparkTaskInfo taskInfo) { | ||
taskInfo_ = taskInfo; | ||
#ifdef GLUTEN_PRINT_DEBUG |
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.
Do we want to control debug log through Gluten config in this PR? Previously, it is controlled by the compilation flag, see https://github.com/oap-project/gluten/blob/main/cpp/CMakeLists.txt#L76-L79. Maybe an option is to control the cpp compilation level through scala config.
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.
Otherwise, we should consider removing RelWithDebInfo
compilation option, and change all logics controlled by GLUTEN_PRINT_DEBUG
to the new Scala config.
This patch only move some debug info into scala config.
It's what I'm going to do. CI does not check debug build and we encounter some build error in RelWithDebInfo when code changes, and it would be great to debug(not equal to cmake debug) without recompile. |
@Yohahaha Makes sense to me. Could you open an issue on removing |
===== Performance report for TPCH SF2000 with Velox backend, for reference only ====
|
Use spark.gluten.sql.debug to enable print static/session config, print json plan.