New ADBC driver for Amazon Athena

A new ADBC driver for Amazon Athena is available through dbc . Install version 0.1.1 with:

$ dbc install athena

The driver supports SQL query execution, bind parameters, and table schema discovery. See the ADBC Driver for Amazon Athena documentation.

The driver is developed by AWS and is built and distributed by the ADBC Driver Foundry. It is implemented in Rust, and reads Arrow or JSON results through the API. It supports various authentication methods for AWS.

To get started, provide a connection URI with a athena:// scheme, and optionally a workgroup name:

athena://my-workgroup

The driver can then be used like any other driver. For example, load it in Python with adbc-driver-manager, replacing the workgroup name with your own:

from adbc_driver_manager import dbapi

with (
    dbapi.connect(
        driver="athena",
        db_kwargs={
            "uri": "athena://my-workgroup",
        },
    ) as con,
    con.cursor() as cursor,
):
    cursor.execute("SELECT 42")
    table = cursor.fetch_arrow_table()

Bug reports and feature requests are welcome through GitHub Issues in the amazon-athena repository in the ADBC Driver Foundry. You can also start a Discussion on GitHub or join the Columnar Community Slack .