clickhouse-common-errors
Skill by jeremylongshore
Diagnoses and fixes common ClickHouse errors such as query failures, insert problems, memory limits and merge issues. It is for engineers debugging ClickHouse exceptions or server-side errors in logs.
Install clickhouse-common-errors
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clickhouse-common-errors ~/.claude/skills/clickhouse-common-errorsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install clickhouse-common-errors in Claude Code
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clickhouse-common-errors ~/.gemini/antigravity-cli/skills/clickhouse-common-errorsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install clickhouse-common-errors in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This Claude Code skill helps classify a ClickHouse exception by its name and numeric code. It maps each error to a category such as Schema, Query, Resources or Insert pattern. The three highest-frequency errors have inline fixes: Too Many Parts (252), Memory Limit Exceeded (241) and Syntax Error (62).
For each error, the skill gives the SQL to run, such as a part count query, a SET for memory limits, or corrected identifier syntax. It then asks the assistant to confirm the fix with a system table query. The full catalog of further errors and diagnostic queries sits in a separate reference file. The skill is for engineers who hit ClickHouse exceptions through the native client or the HTTP interface.
Written from the project's SKILL.md and checked against it.
What it can do
- Error classificationMaps an exception name or numeric code to a category using a lookup table of eight codes.
- Too Many Parts fixCounts active parts per table and raises parts_to_throw_insert as temporary relief.
- Memory limit fixSuggests raising max_memory_usage or spilling large GROUP BY to disk.
- Syntax error fixesShows correct identifier quoting and OFFSET usage for common MySQL-style mistakes.
- Fix verificationRe-runs system table queries on system.parts, system.processes or system.query_log to confirm the fix.
- Runaway query terminationFinds a stuck query in system.processes and stops it with KILL QUERY.
What you need
- Access to a ClickHouse endpoint via clickhouse-client or the HTTP interface on port 8123
- Permission to read the system.* introspection tables
- The failing statement and the raw exception text
Try asking
- Fix my ClickHouse Too Many Parts error on the events table
- Why is my ClickHouse query throwing MEMORY_LIMIT_EXCEEDED?
- Debug this ClickHouse syntax error: SELECT "user_id" FROM events
Good to know
- Only three errors have inline fixes; the others are in a separate reference file.
- The error table lists eight codes, although the description mentions a wider set.
- Shell access is limited to curl in the allowed tools.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/.curated/clickhouse-common-errors/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadGrepBash(curl:*)
-
SKILL.md6 KB -
references/error-reference.md6 KB
Alternatives to clickhouse-common-errors
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
clickhouse-common-errors: common questions
Which ClickHouse errors does this skill cover?
The skill covers the three top errors inline: Too Many Parts (252), Memory Limit Exceeded (241) and Syntax Error (62). Its table also lists codes 16, 60, 159, 164 and 202, with the rest of the catalog in a reference file.
How does the assistant connect to ClickHouse?
The source says access can be through the native clickhouse-client or the HTTP interface on port 8123 using curl. It lists curl as the only allowed shell command.
Is there a tool for deeper debugging?
The source points to a separate clickhouse-debug-bundle skill for comprehensive debugging.
How do I install clickhouse-common-errors?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is clickhouse-common-errors free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is clickhouse-common-errors safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to clickhouse-common-errors?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
