Trino Presto Federated Queryのロゴ

Trino Presto Federated Query

コミュニティ
vaquarkhan
trino-presto-federated-query

TrinoとPrestoのフェデレーションクエリ設計をAIエージェントに案内します。異種システムをまたいだクエリ、セマンティクスの一貫性の計画、フェデレーション分析におけるパフォーマンスやガバナンスの管理に使用します。

Add to TypingMind

概要

公開者vaquarkhan
リポジトリdata-engineering-agent-skills
スキル名trino-presto-federated-query
スター
60
フォーク
8
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    vaquarkhanがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Trino Presto Federated Query」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/vaquarkhan/data-engineering-agent-skills/tree/main/skills/trino-presto-federated-query
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vaquarkhan/data-engineering-agent-skills.git /tmp/data-engineering-agent-skills
mkdir -p .claude/skills
cp -r /tmp/data-engineering-agent-skills/skills/trino-presto-federated-query .claude/skills/trino-presto-federated-query
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでTrino Presto Federated Queryを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にTrino Presto Federated Queryを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Trino Presto Federated Queryは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Trino Presto Federated Query

Overview

Use this skill when Trino or Presto sits across multiple data systems as a federated query layer. It helps agents reason about federation boundaries, predicate pushdown limits, consistency trade-offs, performance planning, and governed consumption patterns.

When to Use

  • querying across multiple heterogeneous data stores with Trino or Presto
  • defining governed federated analytics access for users or applications
  • managing performance, cost, and semantic consistency across systems
  • building a query layer over lakehouse tables, relational databases, and object stores
  • planning catalog and connector configuration for multi-source environments

Do not use this when all data lives in a single system or when a materialized serving layer would be simpler and more performant.

Workflow

  1. Define the federation scope and use case. Include:

    • which data systems are federated (data lake, warehouse, RDBMS, search, cache)
    • what queries need to cross system boundaries
    • who are the consumers (analysts, applications, dashboards)
    • what latency and concurrency expectations exist
    • is federation for ad-hoc exploration or production query patterns
  2. Configure catalogs and connectors with explicit assumptions.

    • document which connector is used for each source and its capabilities
    • understand pushdown support per connector: predicates, projections, aggregations, limits
    • define authentication and access control per catalog
    • test connector behavior for null handling, type mapping, and timezone semantics
    • version connector configurations and treat them as infrastructure code
  3. Design queries for federation-aware performance.

    • push filtering to the source where possible — cross-system joins are expensive
    • minimize data movement: filter early, aggregate at the source when pushdown supports it
    • avoid joining large datasets across different connectors — materialize one side first
    • use EXPLAIN to verify pushdown behavior before assuming it works
    • set query timeouts and resource limits to prevent runaway federated scans
  4. Manage semantic consistency across sources.

    • the same entity in different systems may have different schemas, keys, or freshness
    • define a canonical schema for cross-system entities
    • document freshness differences: real-time source vs daily-refreshed warehouse copy
    • use views or virtual datasets to present consistent semantics to consumers
    • alert when source freshness diverges beyond acceptable thresholds
  5. Implement access control and governance.

    • define who can query which catalogs and schemas
    • implement column-level or row-level security where sensitive data is federated
    • audit query patterns: who queries what, how often, and at what cost
    • prevent sensitive data from leaking through cross-system joins
    • document data classification per catalog for security reviews
  6. Plan for operations, scaling, and failure modes.

    • define resource groups to isolate workloads and prevent noisy neighbors
    • plan for connector failures: what happens when one source is down?
    • monitor query queue depth, execution time, and memory usage per worker
    • define scaling strategy: add workers vs optimize queries
    • document disaster recovery: can the Trino cluster be rebuilt quickly?
    • plan for catalog and connector upgrades without query disruption

Common Rationalizations

RationalizationReality
"Federation means we don't need to move data."Federation moves data at query time instead of ETL time. Large cross-system joins are often slower and more expensive than materialized copies.
"Trino pushes everything down automatically."Pushdown depends on the connector and the query pattern. Not all predicates, aggregations, or joins are pushed — verify with EXPLAIN.
"Users can just query everything from one place."Federated access without governance exposes sensitive data, creates consistency confusion, and generates unexpected costs. Access control is mandatory.
"Performance will be fine because the sources are fast."Federated query performance depends on network latency, pushdown capability, and data volume. A fast source does not guarantee a fast federated query.

Red Flags

  • cross-system joins on large tables without materialization or pre-filtering
  • no EXPLAIN verification of pushdown behavior for critical queries
  • same entity has conflicting semantics across federated sources with no canonical definition
  • no access control beyond "connect to the cluster and query anything"
  • resource groups are not configured — one bad query starves all others
  • connector failures cause cascading query failures with no graceful degradation
  • no monitoring of query cost, duration, or resource consumption per user
  • freshness differences between sources are not documented or surfaced to consumers

Verification

  • Federation scope, sources, and consumer expectations are documented
  • Connector pushdown capabilities are tested and documented per catalog
  • Cross-system queries are designed for pushdown and minimize data movement
  • Semantic consistency is maintained through canonical schemas or governed views
  • Access control and data classification are implemented per catalog
  • Resource groups isolate workloads and prevent noisy-neighbor problems
  • Operations monitoring covers query performance, failures, and resource usage
  • Connector and cluster recovery procedures are documented and tested

よくある質問

AIスキル「Trino Presto Federated Query」では何ができますか?

TrinoとPrestoのフェデレーションクエリ設計をAIエージェントに案内します。異種システムをまたいだクエリ、セマンティクスの一貫性の計画、フェデレーション分析におけるパフォーマンスやガバナンスの管理に使用します。

TypingMindでTrino Presto Federated Queryを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Trino Presto Federated Queryはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにTrino Presto Federated Queryをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/vaquarkhan/data-engineering-agent-skills/tree/main/skills/trino-presto-federated-queryを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Trino Presto Federated Queryを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Trino Presto Federated Queryで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもTrino Presto Federated Queryを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Trino Presto Federated Query」は無料ですか?

はい。vaquarkhanがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇