datafusion-cli
БесплатноБез исполняемых скриптовНе проверенUse this skill when the user wants to run SQL queries against CSV, Parquet, JSON, or Avro files without a database server, using Apache DataFusion's CLI.
от javimosch★ 58 звёзд на GitHubОб этом скилле
datafusion-cli Plugin
datafusion-cli embeds the Apache DataFusion query engine (Arrow-based, vectorized) in a standalone CLI. Register data files as external tables and query them with standard SQL — a fast, serverless alternative to spinning up DuckDB/Postgres for file analytics.
Commands
datafusion-cli query exec "<sql>"— Non-interactive SQL (add--format json|csv|nd-jsonfor scripting)datafusion-cli file run <script.sql>— Execute a SQL filedatafusion-cli repl open [--data-path dir]— Interactive REPLdatafusion-cli _ _— Passthrough
Usage Examples
- "Query this Parquet file with SQL"
- "Join a CSV and a JSON file"
- "Run this SQL script over the data in ./data"
- "Count rows in this parquet file"
Installation
cargo install datafusion-cli
# or: brew install datafusion
Examples
# Parquet via external table DDL
datafusion-cli -c "CREATE EXTERNAL TABLE hits STORED AS PARQUET LOCATION 'hits.parquet'; SELECT * FROM hits LIMIT 5;"
# CSV/JSON quoted directly in FROM (single quotes around path)
datafusion-cli -c "SELECT * FROM 'data.csv' LIMIT 10;"
datafusion-cli -c "SELECT user, count(*) FROM 'logs.json' GROUP BY user;"
# Machine-readable output
datafusion-cli -c "SELECT * FROM 'x.parquet'" --format nd-json
# A directory of files becomes the default catalog
datafusion-cli --data-path ./parquet_dir
Key Features
- Formats: Parquet, CSV, JSON (nd-json), Avro, Arrow IPC
CREATE EXTERNAL TABLE ... STORED AS PARQUET|CSV|JSON LOCATION 'path'--format json|csv|nd-jsonfor agent/script-friendly output- Full ANSI SQL: joins, aggregations, window functions, CTEs
Установить datafusion-cli в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл datafusion-cli?
Use this skill when the user wants to run SQL queries against CSV, Parquet, JSON, or Avro files without a database server, using Apache DataFusion's CLI.
Как установить скилл datafusion-cli?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл datafusion-cli запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic