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

release-22.2: server, sql, ui: add plan gist to active queries, add explain plan to active stms and insights #90557

Merged

Conversation

xinhaoz
Copy link
Member

@xinhaoz xinhaoz commented Oct 24, 2022

Backport:

Please see individual PRs for details.

Release justification: low-risk, high benefit change to existing functionality

/cc @cockroachdb/release

Closes cockroachdb#76554

This commit surfaces an executing query's plan gist.
This information is added to the ListSessions response
and the `crdb_internal.{node,cluster}_queries` tables.
This field is only populated when the query enters the
EXECUTING phase.

Release note (sql change): new column `plan_gist`
added to `crdb_internal.{node,cluster}_queries`
representing the compressed logical plan.
Closes cockroachdb#79128

This commit splits the active statment details page into
2 tab views:
1. Overview - the active stmt details information that
was already being displayed prior to this commit
2. Explain Tab - newly added as of this commit. The explain
plan for this active statement.

The explain plan for the active statement being viewed
will be retrieved when the tab is clicked by making a
req to decode the plan gist of the stmt.

The explain tab is currently disabled for tenants until
the sql http api is available.

Release note (ui change): new tabs in active statement
details page:
1. Overview - (previous page info of stmt details)
2. Explain Plan - the explain plan of the stmt, available
if the returned plan gist is non-empty
This commit refactors the statement insight details page
component from a class component to a functional component.

Release note: None
Closes cockroachdb#88093

This commit adds a new tab to the statement insight details
page. The page is now separated into two tabs:
1. Overview - what was already  on the page (insights details)
2. Explain Plan - the explain plan for the stmt being viewed

Release note (ui change): new tab view added to the stmt insight
details page:
1. Overview - what was already  on the page (insights details)
2. Explain Plan - the explain plan for the stmt being viewed
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@xinhaoz xinhaoz marked this pull request as ready for review October 24, 2022 17:13
@xinhaoz xinhaoz requested review from a team as code owners October 24, 2022 17:13
@xinhaoz xinhaoz requested review from a team, maryliag and ericharmeling October 24, 2022 17:13
@xinhaoz xinhaoz changed the title server, sql, ui: add plan gist to active queries, add explain plan to active stms and insights release-22.2: server, sql, ui: add plan gist to active queries, add explain plan to active stms and insights Oct 24, 2022
Copy link
Contributor

@maryliag maryliag left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 9 of 9 files at r1, 6 of 6 files at r2, 1 of 1 files at r3, 7 of 7 files at r4, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @ericharmeling)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants