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

Truncate long plan labels and refer to "print-plans" #2821

Merged
merged 2 commits into from
Jun 28, 2021

Conversation

gerashegalov
Copy link
Collaborator

Properly treat graphviz compiled with the default 16K label max

Closes #2710.

Signed-off-by: Gera Shegalov gera@apache.org

Properly treat graphviz compiled with the default 16K label max

Closes NVIDIA#2710.

Signed-off-by: Gera Shegalov <gera@apache.org>
@gerashegalov gerashegalov self-assigned this Jun 25, 2021
@gerashegalov gerashegalov added this to the June 21 - July 2 milestone Jun 25, 2021
@gerashegalov gerashegalov added tools bug Something isn't working labels Jun 25, 2021
physicalPlan: String,
maxLength: Int = 16384
): String = {
val sqlPlanFile = s"file://$outputDir/planDescriptions-$appId"
Copy link
Collaborator

Choose a reason for hiding this comment

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

outputDir isn't necessarily file://, could be in hdfs for instance, I guess maybe you are thinking they download it anyway so when open it should be? But if they do that outputdir could be different

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes forgot about non-OS-mounted locations.

s"""<<table border="0">
|<tr><td>Application: $appId, Query: $sqlId</td></tr>
|<tr><td>$sqlPlanPlaceHolder</td></tr>
|<tr><td href="$sqlPlanFile">
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would just say see the output from --print-plans and not do the link.

@gerashegalov gerashegalov changed the title Truncate and link plan labels to "print-plans" Truncate long plan labels and refer to "print-plans" Jun 26, 2021
@gerashegalov
Copy link
Collaborator Author

build

@tgravescs tgravescs merged commit 13b740c into NVIDIA:branch-21.08 Jun 28, 2021
@gerashegalov gerashegalov deleted the dot-label-cap-2710 branch November 16, 2022 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] dot file generation can go over the limits of dot
2 participants