[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 |
@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! |
| /// 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.
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.
rui-mo
left a comment
There was a problem hiding this comment.
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.