Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aliyun avatar

Alibabacloud Odps Sql Generation

  • 115 installs
  • 208 repo stars
  • Updated August 4, 2026
  • aliyun/alibabacloud-aiops-skills

alibabacloud-odps-sql-generation is a Claude skill that generates and diagnoses MaxCompute (ODPS) SQL for text2sql, covering dialect differences, query pattern templates, and ODPS error codes.

About

This skill provides MaxCompute (ODPS) SQL generation and diagnostics for text2sql scenarios. A developer uses it to generate SELECT queries, apply query pattern templates (Top N, PIVOT, window functions, running totals), handle dialect differences from ANSI SQL, and diagnose ODPS-0xxx error codes. It routes by question type to reference files covering text2sql principles, the MaxCompute SELECT guide, query patterns, and common errors.

  • Generates and diagnoses MaxCompute (ODPS) SQL for text2sql scenarios
  • Covers dialect differences from ANSI SQL, query pattern templates (Top N, PIVOT, window functions), and ODPS error codes
  • Routes by question type to reference files for principles, the SELECT guide, query patterns, and common errors

Alibabacloud Odps Sql Generation by the numbers

  • 115 all-time installs (skills.sh)
  • Ranked #309 of 911 Databases skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

alibabacloud-odps-sql-generation capabilities & compatibility

Works with
aws
Use cases
data analysis · database
From the docs

What alibabacloud-odps-sql-generation says it does

Provides MaxCompute SQL intelligent generation capabilities for AI agents, covering text2sql conversion principles, dialect syntax differences (DQL/DDL/DML), common query pattern templates (Top N, PIV
SKILL.md
MaxCompute is based on Hive SQL extensions and has significant differences from ANSI standard SQL.
SKILL.md
npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill alibabacloud-odps-sql-generation

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs115
repo stars208
Last updatedAugust 4, 2026
Repositoryaliyun/alibabacloud-aiops-skills

What it does

Generate, debug, and migrate MaxCompute (ODPS) SQL with dialect rules, query patterns, and error-code diagnostics.

Who is it for?

Developers writing, debugging, or migrating MaxCompute / ODPS SQL and needing dialect-correct query patterns.

Skip if: MaxCompute non-SQL interfaces (Tunnel/MapReduce/PyODPS), console/permission management, or cluster-side failures.

When should I use this skill?

The user asks to generate, debug, or migrate MaxCompute / ODPS SQL, or hits an ODPS-0xxx error code.

By the numbers

  • 4 reference files (principles, SELECT guide, query patterns, common errors)

Files

SKILL.mdMarkdownGitHub ↗

MaxCompute SQL Engine Syntax Skill

Provides MaxCompute SQL engine syntax guidance for text2sql scenarios. MaxCompute is based on Hive SQL extensions and has significant differences from ANSI standard SQL.

Usage

Load corresponding reference files based on question type (can be combined). The load column indicates relative loading weight (heavy ≈ large, medium ≈ moderate), for budget estimation, not exact token counts. Each file's opening paragraph describes its own scope.

Trigger conditionFileload
NL→SELECT generation / text2sql (determine intent, granularity, table-column mapping, output format first)references/text2sql_principles.mdlight
Generate MaxCompute SELECT queries (dialect rules, DQL default must-read)references/maxcompute_select_guide.mdheavy
Match query pattern keywords: Top N / top-N per group / year-over-year / month-over-month / consecutive N days / retention / row-to-column / column-to-row / PIVOT / UNPIVOT / array expansion / LATERAL VIEW / EXPLODE / JSON extraction / GET_JSON_OBJECT / cumulative / running total / Range Join / GROUPING SETS / CUBE / ROLLUP / pagination / pagingreferences/sql_query_patterns.mdmedium
SQL execution failure requiring diagnosis and recovery (including ODPS-0xxx error codes)references/sql_common_errors.mdmedium
Relationship: text2sql_principles.md provides engine-independent NL→SELECT generation principles; maxcompute_select_guide.md is the single authoritative source for MaxCompute DQL dialect rules (unsupported syntax/functions/partitioning/types/SET parameters). sql_query_patterns.md provides query template snippets only, without duplicating rules.

Out of Scope

The following scenarios exceed this skill's scope:

  • MaxCompute non-SQL interfaces: Tunnel / MapReduce / Graph / PyODPS DataFrame API, SDK invocation methods
  • Console and permission management: Quota requests, IAM / RAM roles, project owner operations — use Aliyun console or support tickets
  • Execution plan-level deep tuning: Only lists common SET parameters and hints; does not analyze specific plan nodes / Fuxi DAG / data skew formation paths
  • Cluster-side / platform-side failures: Worker crashes, resource scheduling failures, MetaStore transaction conflicts, storage layer read/write errors — these are support ticket issues, not SQL issues

Related skills

FAQ

What SQL does it target?

MaxCompute (ODPS) SQL, which is based on Hive SQL extensions and differs significantly from ANSI standard SQL.

What is out of scope?

Non-SQL interfaces (Tunnel, MapReduce, PyODPS), console/permission management, and cluster-side or platform failures.

Databasesdatabasesanalytics

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.