Ways to work with DuckDB
You can work with DuckDB through the console, API clients, drivers, or the extension for a local DuckDB session.
Amazon CLI and SDK versions released before December 1, 2026 don't include the EngineVersion parameter of StartQueryExecution or the GetQueryResultStream operation. For Amazon Region availability, see Regions and availability. The following list includes the command-line walkthrough and application examples.
-
The Athena console. Create DuckDB workgroups and run queries in the query editor. From an Athena engine version 3 workgroup, you can also run a single query on DuckDB and use the migration agent. To get started, see Run your first query using the console.
-
The Amazon Command Line Interface (Amazon CLI). Run queries from the command line. To get started, see Run your first query with the Amazon CLI.
-
The Amazon SDK. Query your workgroup from an application. For examples, see Code samples.
-
The Athena extension for DuckDB connects a local session to an Athena workgroup and can combine Athena query results with local data. For setup, see Connect to Athena with the DuckDB extension.
-
The JDBC and ODBC drivers. For version 4.x setup, see JDBC 4.x and ODBC 4.x. For other driver versions, see Use Athena drivers and extensions.