trino-explain-plan-review

Community

Diagnose slow Trino queries from plans

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 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: 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.
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.