Considerations and limitations
The following are not supported on workgroups that use Amazon Athena, powered by DuckDB:
-
Results and output. Client-side encryption (CSE-KMS) for results, S3 Access Grants for query results, and the older
GetQueryResultsStreamoperation. -
API operations.
-
StartQueryExecutionreturns a successful response even when the SQL is invalid. To find out whether a query succeeded, callGetQueryExecutionorBatchGetQueryExecutionand check the query status. -
DuckDB workgroups reject the following workgroup settings:
CustomerContentEncryptionConfiguration,IdentityCenterConfiguration,QueryResultsS3AccessGrantsConfiguration,ExecutionRole, andMonitoringConfiguration. -
DuckDB workgroups reject an
EngineConfigurationthat uses theathena-query-engine-propertiesclassification. Use theathena-execution-propertiesclassification instead.
-
-
Query features. Prepared statements (
PREPARE,EXECUTE, andDEALLOCATE PREPARE), and query result reuse. To run a query with different values, use execution parameters. For more information, see Use parameterized and saved queries. -
Workgroup configuration. Customer content encryption, IAM Identity Center-enabled workgroups, the
athena-query-engine-propertiesclassification, andMonitoringConfiguration. -
Catalogs and access. Catalogs in other AWS accounts and Lake Formation resource links, federated queries to external data sources such as Amazon DynamoDB, Snowflake, MySQL, Amazon DocumentDB, SQL Server, and PostgreSQL, and user-defined and machine learning functions declared with USING EXTERNAL FUNCTION.
-
Cross-Region Amazon S3 reads. Cross-Region Amazon S3 buckets cannot be read.
-
SQL and tables. Materialized views, views over Iceberg tables and S3 Tables, temporary views,
ALTER VIEW,SHOW VIEWSandSHOW CREATE VIEW,OPTIMIZEandVACUUM,MSCK REPAIR TABLE, Delta Lake and Apache Hudi tables, and ORC tables. -
Iceberg reads.
-
ORC and Avro data files
-
Reading branch and tag, including time travel by branch or tag name. Refs are ignored, and AT (VERSION => 'name') fails.
-
Incremental and changelog reads.
-
Iceberg views
-
Metadata columns _spec_id, _partition and _deleted, and changelog columns.
-
Table and partition statistics files (Puffin NDV, partition stats)
-
Reading or writing geography columns. Queries that don't touch them work.
-
Multi-argument partition transforms
-
Puffin files with an LZ4-compressed footer
-
S3 Express directory buckets
-
Remote signing
-
Tables whose catalog requests Amazon S3 server-side encryption with customer-provided keys (SSE-C), meaning
s3.sse.typeis set tocustom
-
-
Iceberg writes.
-
Copy-on-write support
-
Writes to Iceberg v1 tables
-
INSERT OVERWRITE and partition overwrite
-
Writes to branches or tags, and write-audit-publish
-
ORC and Avro data files
-
Writes to tables whose catalog requests Amazon S3 server-side encryption, meaning
s3.sse.typeis set to a value other thannone -
Nested VARIANT values
-
Reading or writing geography columns. Queries that don't touch them work.
-
Multi-argument partition transforms
-
S3 Express directory buckets
-
Custom snapshot-summary properties
-
write.parquet.compression-level with gzip or brotli
-
-
Iceberg DDLs.
-
CREATE OR REPLACE, for tables and schemas
-
LIST, MAP and VARIANT column defaults
-
-
Iceberg maintenance procedures.
-
Snapshot expiry and orphan-file removal
-
Rewriting manifests, position-delete files or the table path
-
Rollback by timestamp, set current snapshot, cherry-pick, publish, fast-forward.
-
add_files, migrate, snapshot, register table
-
Compaction (rewrite_data_files)
-
Sort and z-order compaction
-
Computing table and partition statistics files
-
-
Cost controls. BytesScannedCutoffPerQuery is accepted but not enforced, so a DuckDB workgroup has no built-in per-query cutoff. To cap the work a query can do, use DPU limits and Amazon CloudWatch alarms.
-
During preview, Amazon Athena, powered by DuckDB does not support tables whose Amazon S3 location is registered with AWS Lake Formation. Any statement on such a table fails, whether the principal has full-table or fine-grained (row-, column-, or cell-level) access. For more information, see Lake Formation tables.
-
SageMaker Unified Studio. Data Agent is not supported.
For many of these, you can run the statement in an Athena engine version 3 workgroup, because both engines share the AWS Glue Data Catalog.
For information about when DuckDB runs a query on a single worker or across several workers, see Query execution.