

# Differences with local DuckDB

The extension connects a local DuckDB session to Athena. The following table describes how this changes query execution and data access.



| Area | Local queries without the Athena extension | Queries through the Athena extension | 
| --- | --- | --- | 
| Execution | Local operations run in the local session. | Eligible statements run on Athena. Local joins and other operations can remain in DuckDB. | 
| Compute | Local operators use the resources of the host machine. | Remote operations use Athena compute; local operations still use the host machine. | 
| Table access | Use the files and catalogs available to the local session. | Attach an Athena workgroup to query Data Catalog and S3 Tables tables. | 
| Table names | Names resolve in the local catalog and search path. | Qualify remote tables as alias.database.table, or select the attached catalog or database with USE. Nested schema paths are not supported. | 
| Transfer | Local operators consume the data they read. | Athena returns query results. A per-table read without a remote filter can return the whole table. | 
| SQL | SQL runs in the local DuckDB session. | Use SQL supported by DuckDB for remote operations. | 
| Metadata | Inspect the objects available to the local session. | Catalog listing can require metadata requests for multiple databases. Filter listings to the database you need. | 
| Installation | Each extension has its own installation requirements. | Register the AWS repository and explicitly install a compatible Athena extension for the client version and platform. | 
| Credentials | Credential requirements depend on the files, catalogs, and extensions used. | The Athena extension signs with DuckDB aws or s3 secrets. Select a secret with the Secret ATTACH option. | 
| Access control | Access depends on the local files and connected services. | Athena receives requests under the signing identity. Follow the engine's data-access requirements and limitations. | 
| Cost | Local execution uses your host resources; connected services can charge for their use. | Athena query pricing applies to statements that run on Athena. | 

Queries run with the selected signing identity, and Athena applies that identity's permissions. For data access requirements and current Lake Formation limitations, see [Security and permissions](duckdb-permissions.md).

Metadata caching defaults to transaction scope. Connection-scoped caching retains metadata until invalidation; it does not make all later listings permanently current. See [Metadata](connect-with-duckdb-extension-settings.md#connect-with-duckdb-extension-settings-metadata). The local client and remote engine are separate installations; use SQL supported by the engine for remote operations.

For query charges and additional service costs, see [Amazon Athena pricing on the AWS website](https://aws.amazon.com/athena/pricing/).

**Choosing how to reach your data from DuckDB**



| Path | Use it when | 
| --- | --- | 
| The iceberg extension with a Glue or S3 Tables Iceberg REST endpoint | You want the local DuckDB session to read Iceberg tables directly. | 
| The glue extension | You want the local DuckDB session to read Hive tables directly. | 
| The athena extension | You want to query Hive and Iceberg tables through an Athena workgroup and submit eligible operations to Athena compute. | 

The first two paths use their own extension and credential configuration. They do not submit the read to an Athena workgroup.