-
Notifications
You must be signed in to change notification settings - Fork 247
chore: Rename COMET_EXPLAIN_VERBOSE_ENABLED to COMET_EXTENDED_EXPLAIN_FORMAT and change default
#2644
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
base: main
Are you sure you want to change the base?
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2644 +/- ##
============================================
+ Coverage 56.12% 59.20% +3.08%
- Complexity 976 1448 +472
============================================
Files 119 147 +28
Lines 11743 13755 +2012
Branches 2251 2367 +116
============================================
+ Hits 6591 8144 +1553
- Misses 4012 4386 +374
- Partials 1140 1225 +85 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
This was done so that we could have different outputs for different use cases. The less verbose use case was intended to allow an analytic system to query fallback reasons, so the output was simple and easily parsable in Spark SQL. The more verbose use case was intended for human consumption via the Spark UI. (Comet extended info can be displayed in the Spark UI's SQL tab, since Spark 4.0) |
@parthchandra Are you ok with the change to remove the option, or do you think we need to keep this functionality? |
I feel we must have the verbose output available at all times so that users can get that in the Spark UI and explain plan. Whether it is behind a config option or not is up to us. |
COMET_EXPLAIN_VERBOSE_ENABLED configCOMET_EXPLAIN_VERBOSE_ENABLED to COMET_EXTENDED_EXPLAIN_FORMAT and change default
ok, I largely reverted the changes and changes the config from an |
spark/src/test/scala/org/apache/comet/exec/CometExecSuite.scala
Outdated
Show resolved
Hide resolved
spark/src/test/scala/org/apache/comet/exec/CometExecSuite.scala
Outdated
Show resolved
Hide resolved
Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
Co-authored-by: Martin Grigorov <martin-g@users.noreply.github.com>
|
Thanks for the suggestions @martin-g! |
|
Moving to draft until #2669 is merged |
Which issue does this PR close?
N/A
Rationale for this change
The main motivation is to change the default so that the explain plan is verbose by default rather than a list of fallback reasons.
The config is change from a boolean to a string representing the format so that other formats can be added in the future.
Format 'fallback':
Format 'verbose':
What changes are included in this PR?
How are these changes tested?