trino-explain-plan-review
CommunityDiagnose slow Trino queries from plans
Data & Analytics#trino#query tuning#iceberg#explain#performance diagnosis#data skew#exchange analysis
Authorivanshamaev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you pinpoint why a Trino query is slow by interpreting EXPLAIN and EXPLAIN ANALYZE output, including distributed fragments, exchanges, skew, and operator-level bottlenecks.
Core Features & Use Cases
- Plan-type driven diagnosis: Read DISTRIBUTED, LOGICAL, IO, and VALIDATE views to confirm what the engine decided to do.
- Exchange and fragment analysis: Identify RemoteExchange patterns and fragment types (SINGLE/HASH/ROUND_ROBIN/BROADCAST/SOURCE) to reduce shuffle and network cost.
- Runtime metric interpretation: Detect skew using input row variance, spot spill and blocked-time issues, and compare estimated vs actual rows to catch stale stats and misplanning.
- Common slow-plan anti-patterns: Find missing partition pruning, predicate pushdown failures, cross joins, accidental extra repartitioning, and small-file split explosions.
Quick Start
Ask the agent to run EXPLAIN ANALYZE for your query and review the distributed fragments, RemoteExchange count, skew signals (input avg vs std.dev), and estimated-versus-actual row disparities to recommend the most likely fix.
Dependency Matrix
Required Modules
None requiredComponents
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: trino-explain-plan-review Download link: https://github.com/ivanshamaev/de-agent-skills/archive/main.zip#trino-explain-plan-review Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.