dbt-athena
The athena adapter plugin for dbt (data build tool)
What it is and what it does
dbt-athena is a plugin that connects dbt to Amazon Athena, allowing data engineers to write SQL and Python transformations that execute in Athena. It handles the translation of dbt's model definitions, incremental logic, and snapshots into Athena-compatible DDL and DML, managing query execution, result polling, and metadata updates through boto3 and pyathena.
The adapter supports both Hive and Iceberg table formats, with Iceberg requiring Athena Engine v3 and a unique table location. It integrates with AWS Glue for metadata management, supports incremental models with different merge strategies depending on table type, and can run Python models through Athena Spark workgroups. Configuration is handled through dbt profiles, with options for S3 staging directories, retry policies, workgroup selection, and AWS Lake Formation tagging.
Use it for:
- Build incremental fact tables in Athena using dbt's merge or append strategies, with automatic query retry and state management.
- Create snapshots of slowly-changing dimensions in Athena using timestamp or check strategies for historical tracking.
- Run Python-based data transformations in Athena via Spark workgroups, integrated into a dbt DAG.
- Manage Iceberg table format in Athena with dbt's table materialization and incremental model support.
- Organize raw S3 data into Athena databases with dbt seeds and models, leveraging Glue catalog integration.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
dbt-athena is a dbt adapter that enables data transformation workflows to run against Amazon Athena, supporting table and incremental models, snapshots, and Python models on Hive and Iceberg table formats.
Yes. dbt-athena is actively maintained, has low install friction, supports current Python versions (3.10–3.13), carries no known vulnerabilities, and uses a permissive license. It is the standard way to integrate dbt workflows with Athena. Install it if you use dbt and need to transform data in Athena.
Install
dbt-athena on PyPI
pip
pip install dbt-athenauv
uv add dbt-athenapoetry
poetry add dbt-athenaInstalling dbt-athena
Before you install
Low install friction; pure Python wheel with 9 runtime dependencies. Actively maintained with a release 29 days ago and recent commits. Supports Python 3.10 through 3.13.
License in practice
Permissive license treatment allows use in commercial and proprietary projects without restriction.
Quickstart
pip install dbt-athena
In profiles.yml:
athena:
target: dev
outputs:
dev:
type: athena
schema: my_schema
database: awsdatacatalog
region_name: us-west-2
s3_staging_dir: s3://my-bucket/dbt/
Requires AWS credentials (via aws cli, boto3 conventions, or explicit keys) and an existing S3 bucket and Athena database.
Verify before relying
- Whether dbt version 1.7.* constraint applies to all use cases or only specific features.
- Performance characteristics for large-scale incremental models on Hive vs. Iceberg tables.
- Compatibility with dbt Cloud beyond dbt Core.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 9 — boto3-stubs, boto3, dbt-adapters, dbt-common, dbt-core, mmh3, pyathena, pydantic, tenacity |
| Maintenance | actively maintained — 29 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,159,960/month — #4,285 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: dbt_athena-1.11.0-py3-none-any.whl
Keywords: adapter, adapters, athena, database, dbt, dbt Cloud, dbt Core, dbt Labs, dbt-core, elt
Tags
More Front-Ends packages
SQLAlchemy is a Python SQL toolkit and Object…
permissive · top 100 on PyPI
psycopg2-binarypsycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
alembicAlembic generates and manages database schema…
permissive · top 1,000 on PyPI
weaviate-clientA Python client library for connecting to and…
permissive · top 1,000 on PyPI
databricks-sql-connectorA Python client library that connects to…
permissive · top 1,000 on PyPI
psycopgPsycopg 3 is a PostgreSQL database adapter for…
copyleft · top 1,000 on PyPI
dbt-athena-communityA dbt adapter that enables data transformation…
permissive · top 5,000 on PyPI
PyAthenaPyAthena is a Python DB API 2.0 client for…
permissive · top 1,000 on PyPI
dbt-redshiftdbt-redshift is an adapter that enables dbt to…
permissive · top 5,000 on PyPI
dbt-sparkdbt-spark is the Apache Spark adapter for dbt,…
permissive · top 5,000 on PyPI
dbt-bigquerydbt-bigquery is a dbt adapter that enables data…
permissive · top 5,000 on PyPI
dbt-duckdbdbt-duckdb connects dbt (a SQL/Python…
permissive · top 5,000 on PyPI
pythenaPythena wraps AWS Athena queries in a Python…
copyleft · top 15,000 on PyPI
dbt-postgresdbt-postgres is a dbt adapter that connects dbt…
permissive · top 5,000 on PyPI
dbt-snowflakedbt-snowflake is the Snowflake adapter for dbt,…
permissive · top 5,000 on PyPI
awswranglerAWS SDK for pandas integrates pandas DataFrames…
permissive · top 1,000 on PyPI