-
Notifications
You must be signed in to change notification settings - Fork 453
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] Add plan validation util for debugging validate process #3972
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: |
9777655
to
286d70f
Compare
cpp/velox/jni/VeloxJniWrapper.cc
Outdated
auto jsonPlan = gluten::substraitFromPbToJson("Plan", planData, planSize); | ||
LOG(INFO) << std::string(50, '#') << " received substrait::Plan: for validation"; | ||
} catch (const std::exception& e) { | ||
LOG(WARNING) << "Error converting Substrait plan to JSON: " << e.what(); |
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.
Probably "Error converting Substrait plan for validation to JSON:"
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.
docs/developers/MicroBenchmarks.md
Outdated
|
||
``` | ||
Run the query by spark-shell. Get the Substrait plan from executor's stdout. | ||
Run the query with config `spark.gluten.sql.debug=true` and get the Substrait json plan from log, then save it as a JSON file, suppose the name is "plan.json". |
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.
We also need config spark.gluten.sql.columnar.backend.velox.glogSeverityLevel=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.
thank you, btw could we open glog when debug mode enabled?
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.
thank you, btw could we open glog when debug mode enabled?
Sounds good!
Thanks for adding this feature! Could you provide some output after this change? |
json plan can be printed if has no agg. your patch is great, I will revert doc modification. |
286d70f
to
85c5829
Compare
|
@marin-ma could we merge or any more comments? |
Hi @Yohahaha, could you document how to use it? Maybe, in |
77c951a
to
001c8ef
Compare
Added. |
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 for your work! Will merge the PR soon (Rong is taking leave, if any more comment after that, let's fix it in follow-up PR).
===== Performance report for TPCH SF2000 with Velox backend, for reference only ====
|
What changes were proposed in this pull request?
Add plan_validation_util executable for debugging validate process in native side, and refine docs.