

# Use Amazon Athena Federated Query
<a name="federated-queries"></a>

If you have data in sources other than Amazon S3, you can use Athena Federated Query to query the data in place or build pipelines that extract data from multiple data sources and store the data in Amazon S3. With Athena Federated Query, you can run SQL queries across data stored in relational, non-relational, object, and custom data sources. For a full list of supported data sources, see [Available data source connectors](connectors-available.md). 

When you run a query against a data source, Athena invokes the connector to determine which data to read, manages parallelism, and pushes down filter predicates. Connectors can also restrict access to data based on the user who submits the query.

Athena uses *data source connectors* to run federated queries on underlying data. Athena supports two types of data source connectors with different capabilities: 
+ **Amazon Glue Data Catalog federated connectors** – These connectors use an Amazon Glue connection to connect to the data source. They can be used with fine-grained data governance control support through Lake Formation. For more information, see [Federated catalog data connections](https://docs.amazonaws.cn/lake-formation/latest/dg/federated-catalog-data-connection.html) in the *Amazon Lake Formation Developer Guide*. 
  + Connectors associated with a Lambda can optionally be manually registered as an Amazon Glue Data Catalog to be used with Lake Formation for fine-grained data governance 
  + Starting April 21, 2026, certain newly created connectors are automatically registered as Glue Data Catalogs and do not use a Lambda function in your Amazon account 
+ **Athena data catalog federated connectors** – These connectors are specific to Athena and cannot be registered as federated catalogs with Amazon Glue Data Catalog. They require a Lambda function in your Amazon account to query data. Custom connectors developed using the Athena Query Federation SDK are Athena data catalog connectors. For more information, see [Develop a data source connector using the Athena Query Federation SDK](connect-data-source-federation-sdk.md). 

For a list of data sources compatible with each type, see [Connector type support by data source](#federated-queries-connector-support).

**Note**  
Third party developers may have used the Athena Query Federation SDK to write data source connectors. For support or licensing issues with these data source connectors, please work with your connector provider. These connectors are not tested or supported by Amazon. 

## Considerations and limitations
<a name="connect-to-a-data-source-considerations"></a>
+ **Views** – You can create and query views on federated data sources. Federated views are stored in Amazon Glue, not the underlying data source. For more information, see [Query federated views](running-federated-queries.md#running-federated-queries-federated-views).
+ **Delimited identifiers** – Delimited identifiers (also known as quoted identifiers) begin and end with double quotation marks ("). Currently, delimited identifiers are not supported for federated queries in Athena.
+ **Write operations** – Write operations like [INSERT INTO](insert-into.md) are not supported. Attempting to do so may result in the error message This operation is currently not supported for external catalogs.
+  **Pricing** – For pricing information, see [Amazon Athena pricing](https://www.amazonaws.cn/athena/pricing/).
+ **JDBC driver** – To use the JDBC driver with federated queries or an [external Hive metastore](connect-to-data-source-hive.md), include `MetadataRetrievalMethod=ProxyAPI` in your JDBC connection string. For information about the JDBC driver, see [Connect to Amazon Athena with JDBC](connect-with-jdbc.md). 
+ **Secrets Manager** – To use the Athena Federated Query feature with Amazon Secrets Manager, you must configure an Amazon VPC private endpoint for Secrets Manager. For more information, see [Create a Secrets Manager VPC private endpoint](https://docs.amazonaws.cn/secretsmanager/latest/userguide/vpc-endpoint-overview.html#vpc-endpoint-create) in the *Amazon Secrets Manager User Guide*.
+ **Passthrough queries** – Passthrough queries are not supported after a data source is registered as an Amazon Glue Data Catalog.

## Connector type support by data source
<a name="federated-queries-connector-support"></a>

The following table shows the connector types that each data source supports. Certain Amazon Glue Data Catalog federated catalog connectors that you create on or after April 21, 2026, do not require Lambda.


| Data source | Amazon Glue Data Catalog federated connectors | Athena data catalog federated connectors |  | Without Lambda | With Lambda |  | 
| --- | --- | --- | --- | --- | --- | --- | 
| [Amazon CloudWatch Logs](connectors-cloudwatch.md) |  | Yes | Yes | 
| [Amazon CloudWatch Metrics](connectors-cwmetrics.md) |  | Yes | Yes | 
| [Amazon DocumentDB](connectors-docdb.md) | Yes | Yes | Yes | 
| [Amazon DynamoDB](connectors-dynamodb.md) | Yes | Yes | Yes | 
| [Amazon MSK](connectors-msk.md) |  |  | Yes | 
| [Amazon Neptune](connectors-neptune.md) |  |  | Yes | 
| [Amazon OpenSearch](connectors-opensearch.md) | Yes | Yes | Yes | 
| [Amazon Redshift](connectors-redshift.md) | Yes | Yes | Yes | 
| [Amazon Timestream](connectors-timestream.md) |  | Yes | Yes | 
| [Azure Data Lake Storage](connectors-adls-gen2.md) |  | Yes | Yes | 
| [Azure Synapse](connectors-azure-synapse.md) |  | Yes | Yes | 
| [Cloudera Hive](connectors-cloudera-hive.md) |  | Yes | Yes | 
| [Cloudera Impala](connectors-cloudera-impala.md) |  | Yes | Yes | 
| [CMDB](connectors-cmdb.md) |  | Yes | Yes | 
| [Confluent](connectors-kafka.md) |  |  | Yes | 
| [Custom](connect-data-source-federation-sdk.md) |  |  | Yes | 
| [Db2](connectors-ibm-db2.md) |  | Yes | Yes | 
| [Db2 iSeries](connectors-ibm-db2-as400.md) |  | Yes | Yes | 
| [Google BigQuery](connectors-bigquery.md) | Yes | Yes | Yes | 
| [Google Cloud Storage](connectors-gcs.md) |  | Yes | Yes | 
| [HBase](connectors-hbase.md) |  | Yes | Yes | 
| [Hortonworks (Hive)](connectors-hortonworks.md) |  |  | Yes | 
| [Kafka](connectors-kafka.md) |  |  | Yes | 
| [MySQL](connectors-mysql.md) | Yes | Yes | Yes | 
| [Oracle](connectors-oracle.md) | Yes | Yes | Yes | 
| [PostgreSQL](connectors-postgresql.md) | Yes | Yes | Yes | 
| [Redis OSS](connectors-redis.md) |  |  | Yes | 
| [SAP HANA](connectors-sap-hana.md) | Yes | Yes | Yes | 
| [Snowflake](connectors-snowflake.md) | Yes | Yes | Yes | 
| [SQL Server](connectors-microsoft-sql-server.md) | Yes | Yes | Yes | 
| [Teradata](connectors-teradata.md) | Yes | Yes | Yes | 
| [TPC-DS](connectors-tpcds.md) |  | Yes | Yes | 
| [Vertica](connectors-vertica.md) |  | Yes | Yes | 