starrocks-explain-plan

Community

Diagnose slow StarRocks queries from EXPLAIN.

Authorivanshamaev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It helps you pinpoint why a StarRocks query is slow by turning EXPLAIN output into an actionable checklist for shuffle cost, scan selectivity, runtime filters, and optimizer decisions.

Core Features & Use Cases

  • EXPLAIN mode selection for the right layer: guides you through logical (EXPLAIN), physical (EXPLAIN VERBOSE), costed (EXPLAIN COSTS), and runtime-with-metrics (EXPLAIN ANALYZE) views.
  • Plan structure decoding: explains fragments, pipelines, and ExchangeNode communication types to identify where distributed cost is introduced.
  • Root-cause signals for performance tuning: interprets partition pruning, MV/rollup rewrites, PREAGGREGATION behavior, runtime filter propagation, join strategies (BROADCAST/SHUFFLE/COLOCATE), and cardinality/statistics issues.
  • Operator-level bottleneck analysis: shows how to use metrics like OperatorTotalTime, PeakMemoryBytes, and row movement (Pull/Push) to locate the slowest operator.

Quick Start

Run EXPLAIN ANALYZE for your slow StarRocks query, then check partition pruning in every OlapScanNode, confirm runtime filter IDs match between HashJoinNode and scan nodes, and verify whether the scan is reading from an MV rollup via the rollup/table fields.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: starrocks-explain-plan
Download link: https://github.com/ivanshamaev/de-agent-skills/archive/main.zip#starrocks-explain-plan

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.