> ## Documentation Index
> Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Which external databases does DirectQuery support?

> Supported external databases for DirectQuery, such as Snowflake, BigQuery, ClickHouse and Databricks, and how Atoti supports database versions

DirectQuery supports several external databases, plus a Generic JDBC connector for any other database with a JDBC driver.
In DirectQuery, an external database is any system that Atoti queries with SQL.
This includes data warehouses and lakehouses, such as Databricks and Dremio.
Managed databases are cloud services updated by their provider.
Self-hosted databases are installed and updated by the organization that runs them.

| Database | Type |
| - | - |
| Amazon Redshift | Managed |
| ClickHouse | Managed (ClickHouse Cloud) or self-hosted |
| Databricks | Managed |
| Dremio | Managed (Dremio Cloud) or self-hosted |
| Generic JDBC | Not applicable |
| Google BigQuery | Managed |
| Microsoft Azure Synapse | Managed |
| Microsoft SQL Server | Self-hosted |
| Snowflake | Managed |

The database and its version determine whether DirectQuery can connect to it, and which connector to install.
For an overview of DirectQuery, read [Introduction to DirectQuery](https://docs.activeviam.com/concepts/directquery/directquery.md).

## What is the Generic JDBC connector?

The Generic JDBC connector connects DirectQuery to any database that provides a JDBC driver.
DirectQuery needs a SQL dialect to generate queries that the database understands.
The Generic JDBC connector uses standard SQL by default.
A custom dialect for a specific database is written in Java.
In the Atoti Python SDK, the dialect is added as an extra JAR.

## Which database versions does DirectQuery support?

Supported versions depend on who updates the database.

* **Managed databases**: the provider updates the database automatically.
  ActiveViam keeps DirectQuery compatible with the current version.
  ClickHouse Cloud and Databricks SQL warehouses follow this rule.
* **Self-hosted databases**: the organization that runs the database chooses its version.
  Each minor version of Atoti supports specific releases of each self-hosted database.
* **Databricks clusters**: the user selects the runtime version.
  Each minor version of Atoti supports specific Databricks Runtime releases.

For ClickHouse and Databricks clusters, the supported releases are long-term support (LTS) releases.
Maintenance releases of Atoti can add support for a newer LTS release.

The Atoti Java SDK and the Atoti Python SDK support the same database versions.
For the supported versions of each database, read [Compatibility matrix](https://docs.activeviam.com/engine/java-sdk/latest/directquery/compatibility.md).

## Where is the connection setup for each database?

The Atoti Java SDK and the Atoti Python SDK provide the same connectors.

| Database | Atoti Java SDK | Atoti Python SDK |
| - | - | - |
| Amazon Redshift | [Connect to Amazon Redshift](https://docs.activeviam.com/engine/java-sdk/latest/directquery/connect_to_external/connect_to_redshift.md) | [atoti\_directquery\_redshift](https://docs.activeviam.com/engine/python-sdk/latest/api/atoti_directquery_redshift) |
| ClickHouse | [Connect to ClickHouse](https://docs.activeviam.com/engine/java-sdk/latest/directquery/connect_to_external/connect_to_clickhouse.md) | [atoti\_directquery\_clickhouse](https://docs.activeviam.com/engine/python-sdk/latest/api/atoti_directquery_clickhouse) |
| Databricks | [Connect to Databricks](https://docs.activeviam.com/engine/java-sdk/latest/directquery/connect_to_external/connect_to_databricks.md) | [atoti\_directquery\_databricks](https://docs.activeviam.com/engine/python-sdk/latest/api/atoti_directquery_databricks) |
| Dremio | [Generic JDBC connector with the Dremio dialect](https://docs.activeviam.com/engine/java-sdk/latest/directquery/databases/jdbc.md) | [Generic JDBC connector with the Dremio dialect](https://docs.activeviam.com/engine/python-sdk/latest/api/atoti_directquery_jdbc) |
| Generic JDBC | [Generic JDBC](https://docs.activeviam.com/engine/java-sdk/latest/directquery/databases/jdbc.md) | [atoti\_directquery\_jdbc](https://docs.activeviam.com/engine/python-sdk/latest/api/atoti_directquery_jdbc) |
| Google BigQuery | [Connect to Google BigQuery](https://docs.activeviam.com/engine/java-sdk/latest/directquery/connect_to_external/connect_to_bigquery.md) | [atoti\_directquery\_bigquery](https://docs.activeviam.com/engine/python-sdk/latest/api/atoti_directquery_bigquery) |
| Microsoft Azure Synapse | [Connect to Microsoft Azure Synapse](https://docs.activeviam.com/engine/java-sdk/latest/directquery/connect_to_external/connect_to_synapse.md) | [atoti\_directquery\_synapse](https://docs.activeviam.com/engine/python-sdk/latest/api/atoti_directquery_synapse) |
| Microsoft SQL Server | [Connect to Microsoft SQL Server](https://docs.activeviam.com/engine/java-sdk/latest/directquery/connect_to_external/connect_to_mssql.md) | [atoti\_directquery\_mssql](https://docs.activeviam.com/engine/python-sdk/latest/api/atoti_directquery_mssql) |
| Snowflake | [Connect to Snowflake](https://docs.activeviam.com/engine/java-sdk/latest/directquery/connect_to_external/connect_to_snowflake.md) | [atoti\_directquery\_snowflake](https://docs.activeviam.com/engine/python-sdk/latest/api/atoti_directquery_snowflake) |

In the Atoti Python SDK, each connector is a plugin installed as a separate Python package.
For installation instructions, read [Plugins](https://docs.activeviam.com/engine/python-sdk/latest/getting_started/plugins.md).

## Do all databases support the same DirectQuery features?

No.
Support for features such as time travel and vectors differs between databases.
For the differences that matter when working with Atoti, read [External database-specific behavior](https://docs.activeviam.com/concepts/directquery/database-specific-behavior.md).

## Related reading

* [Introduction to DirectQuery](https://docs.activeviam.com/concepts/directquery/directquery.md)
* [External database connection](https://docs.activeviam.com/concepts/directquery/external-database-connection.md)
* [External database-specific behavior](https://docs.activeviam.com/concepts/directquery/database-specific-behavior.md)
* [Compatibility matrix](https://docs.activeviam.com/engine/java-sdk/latest/directquery/compatibility.md)
* [Query an external database](https://docs.activeviam.com/engine/python-sdk/latest/guides/query_an_external_database.md) in the Atoti Python SDK
