a↗agentbay.Get AgentBay
My account ▾
Menu
Back to results

querying-aws-athena

Runs SQL queries on Amazon Athena query history exported as an Apache Iceberg table in S3 Tables. The query_executions system table captures per-query metadata (query text, IAM principal, work group, statement type, data scanned, timing breakdown, error details, tables accessed, result reuse, engine version) for every completed query. Applies when…

Full publisher description

Runs SQL queries on Amazon Athena query history exported as an Apache Iceberg table in S3 Tables. The query_executions system table captures per-query metadata (query text, IAM principal, work group, statement type, data scanned, timing breakdown, error details, tables accessed, result reuse, engine version) for every completed query. Applies when analyzing Athena usage and cost, finding who ran a query, auditing table access, tracking data scanned by user or work group, investigating slow or failed queries, detecting performance regressions, reporting query history beyond the 45-day API window, or enabling Athena system tables. Prefers the system table over the ListQueryExecutions and GetQueryExecution APIs at scale. Trigger phrases: Athena query history, who ran this query, data scanned by user, most queried tables, slowest queries, failed query analysis, Athena cost by work group, query audit trail, enable Athena system tables.

Source details

Read SKILL.md ↗ · Browse skill folder ↗

aws/agent-toolkit-for-aws

skills/specialized-skills/system-table-skills/querying-aws-athena/SKILL.md

Pinned revision e1380e15b6b91f7c7a4e20e9357bd77828e32037

Source checked

This skill page is available in English. Publisher instructions stay in their original language.