Skip to content
Agentmart
Submit a tool

hive-query

Use for read-only SQL against Hive (HiveServer2), Impala or Spark SQL (the Spark Thrift Server) on Hadoop.

Skill by agentchieflou

IndexedMIT★ 1
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/agentchieflou-hive-query

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use for read-only SQL against Hive (HiveServer2), Impala or Spark SQL (the Spark Thrift Server) on Hadoop. Never connect directly; ad-hive / ad-impala / ad-spark lint the SQL for the engine's syntax first, run it, and return TOON. The engines differ — `||` is OR in Impala.

Use cases: backend, marketing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/hive-query

What's inside

Skill name
hive-query
Description
Use for read-only SQL against Hive (HiveServer2), Impala or Spark SQL (the Spark Thrift Server) on Hadoop. Never connect directly; ad-hive / ad-impala / ad-spark lint the SQL for the engine's syntax first, run it, and return TOON. The engines differ — `||` is OR in Impala.
License
MIT
Instructions
13 lines in SKILL.md · view on GitHub

Files (2)

  • SKILL.md
  • hive-impala-sql.md · references/

SKILL.md (first lines)

# hive / impala / spark query (read-only)

0. Before writing SQL read `references/hive-impala-sql.md` §The five differences, §Row limiting and §Dates. Hive 3 has no QUALIFY (Hive 4 does), Impala has none; `||` concatenates in Hive but is LOGICAL OR in Impala — use `concat()`; Hive `trunc()` knows only MONTH/QUARTER/YEAR.
1. Pick the engine from the request: Impala → `ad-impala` (env fact `impala_env`); Spark, Spark SQL, a Delta table → `ad-spark` (env fact `spark_env`; read §Spark SQL first); Hive/Hadoop table → `ad-hive` (env fact `hive_env`). A Spark table with no `spark_env` fact → `ad-hive` reads the same metastore.
2. Write the SQL to `.agent/sql/<ticket>-<purpose>.sql`. One SELECT. Add `LIMIT 100` while exploring; remove only for the final run.
3. Run `ad-hive --sql-file <that file> --name <purpose>`, `ad-impala ...` or `ad-spark ...` (`--env` overrides the fact).
4. `ok: false` with `source: ad-sql-check` → apply the `fix` from `findings`, rerun. Other `ok: false` → fix once from `hint` (`klist` shows whether a Kerberos ticket exists); second failure → `friction-log` type `tool-error`.
   The request said Hadoop (not Hive by name) and Hive refused for capacity — a YARN queue, a timeout, `Error while processing statement` with no SQL line → run the same query once on the other engine (`ad-impala`, after re-reading §The five differences: `||` → `concat()`). Its failure too → `friction-log` type `tool-error` quoting both. A missing Kerberos ticket is an environment error (router step 8), not a reason to switch engines.
5. `meta.warnings` present → apply each fix before the final run.
6. `rule: 6` → do not read rows. Use `stats` or script over `path` (see `data-adapter`).
7. Invoke `state-update` with the `path` and `run_id`.
8. Return to the calling skill (or `router`).

From agentchieflou/this-next-please, MIT.

More from agentchieflou/this-next-please

Signals

Stars
1
Forks
0
Open issues
61
Last commit (this folder)
Oct 21, 2026 (8 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from agentchieflou

Cite this page

hive-query skill. Agent Mart. https://agentmart.dev/skills/agentchieflou-hive-query (last updated 2026-10-24)