Skip to main content

Amazon Athena

Amazon Athena features

Why Athena?

Amazon Athena is a serverless query service that makes it simple to analyze data in Amazon S3 using SQL. Athena now runs DuckDB as a serverless SQL engine: queries run up to 2x faster, and up to 50% lower cost on large datasets than Athena engine version 3. Query results return on datasets of tens of terabytes in seconds on Amazon Athena with DuckDB engine. Process logs, interactive queries for humans and agents; Scales automatically.

  

Key benefits

Open all

    Athena is serverless, so there is no infrastructure to manage. Athena sizes and scales compute for each query on the DuckDB engine, with no configuration, software updates, or capacity planning.

    Open the Athena console and run your first query on DuckDB. Existing data, and AWS Glue Data Catalog tables work immediately. Built in SQL to SQL translation converts Athena version 3 queries to DuckDB in one click. Managed query results store results for you, with no S3 result bucket to configure.

    Athena now runs DuckDB, an open source vectorized analytical engine, using the DuckDB SQL dialect. Write queries with FROM-first syntax, GROUP BY ALL, QUALIFY, PIVOT and UNPIVOT, and ASOF JOIN. Query Parquet, CSV, and JSON data in Amazon S3 and Apache Iceberg tables. Run queries from the Athena console, API, CLI, AWS SDK, JDBC, ODBC, and ADBC drivers, or any DuckDB client with the Athena extension for DuckDB.

    Install DuckDB, configure your AWS profile, and offload queries to Athena with no additional configuration. Athena runs the query with your permissions applied and returns results to DuckDB for continued local analysis.

    Process tens of terabytes in seconds in a single query than Athena version 3, so SQL running on large datasets completes reliably as a single query.

    Stream results in Apache Arrow with data types preserved, connect through ADBC, and create, read, and write Apache Iceberg v3 tables in Amazon S3 and Amazon S3 Tables, including deletion vectors and VARIANT.

    The DuckDB engine runs queries up to 2x faster than Athena engine version 3, with no clusters to manage or tune.

    Amazon Athena is highly available and executes queries using compute resources across multiple facilities, automatically routing queries appropriately if a particular facility is unreachable. Athena uses Amazon S3 as its underlying data store, making your data highly available and durable. Amazon S3 provides durable infrastructure to store important data and is designed for durability of 99.999999999% of objects. Your data is redundantly stored across multiple facilities and multiple devices in each facility.

    Athena controls access with AWS IAM and AWS Lake Formation, applying fine grained permissions to every query, including queries from clients and AI agents. Query encrypted data in Amazon S3, and encrypt managed query results with your own AWS KMS key.

    Amazon Athena integrates out-of-the-box with AWS Glue. Athena resolves tables in the AWS Glue Data Catalog for every query, so the same tables are available from the DuckDB engine, Athena version 3, and other services. With Glue Data Catalog, you will be able to create a unified metadata repository across various services, crawl data sources to discover data and populate your Data Catalog with new and modified table and partition definitions, and maintain schema versioning. You can also use Glue’s fully-managed ETL capabilities to transform data or convert it into columnar formats to optimize query performance and reduce costs. Learn more about AWS Glue.

    Athena provides built-in connectors to 30 popular AWS, on premises, and other cloud data stores, including Amazon Redshift, Amazon DynamoDB, Google BigQuery, Google Cloud Storage, Azure Synapse, Azure Data Lake Storage, Redis, Snowflake, and SAP Hana. By using Athena data source connectors, you can generate insights from multiple data sources using the Athena SQL syntax and without the need to move or transform your data. Data connectors run as AWS Lambda functions and can be enabled for cross-account access to scale SQL queries to hundreds of end users. For a list of supported sources, see Available data source connectors. To learn how to build a custom data source connector, see the Athena connector SDK.

    Federated queries continue to run on Athena version 3 workgroups.

    You can invoke your SageMaker Machine Learning models in an Athena SQL query to run inference. The ability to use ML models in SQL queries makes complex tasks such anomaly detection, customer cohort analysis and sales predictions as simple as writing a SQL query. Athena makes it simple for anyone with SQL experience to run ML models deployed on Amazon SageMaker.

    ML inference in SQL continues to run on Athena version 3 workgroups.

    Stream Arrow results from the DuckDB engine straight into ML and data science tools for feature engineering.