Skip to content

dbeaver/pro#9090 refactor: use new getters for sql execution plan#4333

Open
SychevAndrey wants to merge 2 commits into
develfrom
9090-cb-refactor-use-new-getters-for-cost-rowcount-duration-percent-on-fe
Open

dbeaver/pro#9090 refactor: use new getters for sql execution plan#4333
SychevAndrey wants to merge 2 commits into
develfrom
9090-cb-refactor-use-new-getters-for-cost-rowcount-duration-percent-on-fe

Conversation

@SychevAndrey
Copy link
Copy Markdown
Contributor

No description provided.

@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented May 12, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the SQL execution plan flow to expose newly available execution-plan metadata to the UI layer and to request additional execution-plan node metrics from the GraphQL API.

Changes:

  • Passes hasCost, hasRows, hasDuration, and durationMeasure from the execution plan result into execution plan tab views.
  • Extends ISqlExecutionPlanViewProps with the new execution-plan capability flags.
  • Expands getSqlExecutionPlanResult GraphQL query to request node metrics (cost, rowCount, duration, percent).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
webapp/packages/plugin-sql-editor/src/SqlResultTabs/ExecutionPlan/SqlExecutionPlanPanel.tsx Forwards new execution plan metadata into the TabsState view props.
webapp/packages/plugin-sql-editor/src/SqlResultTabs/ExecutionPlan/ISqlExecutionPlanViewProps.ts Extends the execution plan view contract with new required metadata fields.
webapp/packages/core-sdk/src/queries/grid/getSqlExecutionPlanResult.gql Requests additional execution plan node metrics from the backend.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

hasCost={data.executionPlan.hasCost}
hasRows={data.executionPlan.hasRows}
hasDuration={data.executionPlan.hasDuration}
durationMeasure={data.executionPlan.durationMeasure}
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.

4 participants