-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Print Trino version to EXPLAIN ANALYZE VERBOSE #15243
Conversation
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.
Please update the examples in explain.rst
and explain-analyse.rst
@@ -418,6 +422,10 @@ public static String textDistributedPlan( | |||
.collect(toImmutableMap(DynamicFilterDomainStats::getDynamicFilterId, identity())); | |||
TypeProvider typeProvider = getTypeProvider(allFragments); | |||
|
|||
if (verbose) { |
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 not print this always ?
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.
I would say EXPLAIN ANALYZE
is more for end-users while EXPLAIN ANALYZE VERBOSE
it's kind of diagnostic output for devs and power users. Therefore, I thought it's not that useful to keep it in plain EXPLAIN ANALYZE
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 not always?
every EXPLAIN is quite verbose, and version string is quite short, so having it in every EXPLAIN & EXPLAIN ANALYZE wouldn't hurt
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 in #15317
I changed the section |
Output of EXPLAIN ANALYZE VERBOSE is often shared for troubleshooting therefore it's useful to print Trino version there. ----------------------------------------------------------- Trino version: dev Fragment 1 [SINGLE] Output layout: [orderkey, custkey, count, sum_4, avg] Output partitioning: SINGLE []
71338dc
to
4b994eb
Compare
Output of EXPLAIN ANALYZE VERBOSE is often
shared for troubleshooting therefore it's
useful to print Trino version there.
** NO RELEASE NOTES **