> For the complete documentation index, see [llms.txt](https://docs.decube.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.decube.io/query-engines/amazon-athena.md).

# Amazon Athena

Amazon Athena is supported in Decube as a **compute engine** paired with the [AWS Glue](/transformation-tools/aws-glue.md). It is not a standalone catalog source — Athena works alongside Glue to execute queries against your S3-backed tables, unlocking data observability capabilities that Glue alone cannot provide.

## How the Glue + Athena pairing works

AWS Glue serves as the metadata catalog: it holds your table schemas, column definitions, and data job lineage (including Iceberg tables). Decube connects to Glue to extract and display this structural metadata.

Athena is a serverless query engine that runs SQL against data stored in Amazon S3. Because Glue does not natively support query execution, Decube uses Athena to power profiling runs, sample data previews, and data quality monitors. When you enable Athena on a Glue connection, Decube routes compute operations through Athena while continuing to use Glue for all metadata and lineage.

## What becomes available with Athena enabled

Without Athena, a Glue connection provides metadata and lineage only. Enabling Athena unlocks:

* **Profiling** — run data profiles on your Glue-catalogued tables from the Profiler tab
* **Data preview** — view sample rows directly in the Catalog
* **Data quality monitors** — set up and run all five monitor types:
  * Freshness
  * Volume
  * Field Health
  * Custom SQL
  * Schema Drift
* **Iceberg table support** — profiling, data preview, and all data quality monitors on Iceberg tables (Athena is required to query Iceberg format)

{% hint style="info" %}
Job Failure monitors are not supported on Glue sources regardless of whether Athena is enabled.
{% endhint %}

## Setting up Athena

Athena is configured as part of the AWS Glue connector setup. You will need:

* An S3 bucket to store Athena query results
* An Athena Workgroup
* Additional IAM policies attached to the Glue IAM user

Full setup instructions are in the [AWS Glue](/transformation-tools/aws-glue.md#enable-athena-for-data-observability) section of the AWS Glue connector page.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.decube.io/query-engines/amazon-athena.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
