Skip to content
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

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

sopel39
Copy link
Member

@sopel39 sopel39 commented Nov 29, 2022

Output of EXPLAIN ANALYZE VERBOSE is often
shared for troubleshooting therefore it's
useful to print Trino version there.

** NO RELEASE NOTES **

Copy link
Member

@raunaqmorarka raunaqmorarka left a 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) {
Copy link
Member

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 ?

Copy link
Member Author

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

Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in #15317

@sopel39
Copy link
Member Author

sopel39 commented Nov 30, 2022

Please update the examples in explain.rst and explain-analyse.rst

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 []
@github-actions github-actions bot added the docs label Nov 30, 2022
@sopel39 sopel39 merged commit 79d19de into trinodb:master Nov 30, 2022
@sopel39 sopel39 deleted the ks/version_explain branch November 30, 2022 18:44
@colebow colebow added this to the 404 milestone Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants