Apache Druid
Use the Apache Druid connector to connect to an Apache Druid cluster.
Supported sync modes
This connector is currently in development as a destination. Credential validation is supported, but loading data is not yet available.
Setup
You’ll need:
- An Apache Druid cluster reachable from your deployment/network.
- Access to Druid’s SQL endpoint (
/druid/v2/sql) on a Broker. - (Optional) A Druid user that can authenticate to the SQL endpoint using HTTP Basic auth.
Notes:
- Configure the connector with the Broker base URL (for example,
https://druid-broker.example.com:8282). The connector will query the SQL endpoint under that URL. - If you provide a username/password, the endpoint must use HTTPS (Basic auth over plain HTTP isn’t supported).
Authentication
This connector uses HTTP Basic Authentication against Druid’s SQL API.
- If your Druid broker is publicly reachable, configure a username and password.
- If your broker is private and allows anonymous access, you can leave both fields empty.
When credentials are provided, the connector requires an HTTPS endpoint (Basic auth over plain HTTP is not allowed).
During connection testing, the connector sends a request to:
POST {endpoint}/druid/v2/sql
with a simple query (SELECT 1) to validate connectivity and (when provided) credentials.
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
endpoint | string | ✅ | Base URL for your Druid broker (for example, https://druid.example.com/). The connector sends SQL queries to the broker’s /druid/v2/sql endpoint. |
username | string | Username for HTTP Basic Auth. If set, you must also set password. Basic Auth requires endpoint to use https. | |
password | string | Password for HTTP Basic Auth. If set, you must also set username. | |
datasets | array | ✅ | List of datasets to extract. Each dataset becomes a stream. |
Each entry in datasets supports:
| Field | Type | Required | Description |
|---|---|---|---|
name | string | ✅ | Dataset name. Must be non-empty and unique (names are normalized to stream names). |
sql | string | ✅ | Druid SQL query to run for this dataset. |
table_pattern | string | Optional regex used to discover table names to substitute into the query. If provided, your sql must include the literal placeholder {{table}} as a standalone, unquoted identifier. | |
primary_key | string | Optional comma-separated list of column names to use as the primary key for the stream. | |
incremental_timestamp_field | string | Optional timestamp column to use for incremental syncs. When set, the connector filters results to only new/updated rows based on this field. |
Streams
This is a source connector. Streams are defined by the datasets you configure.
Each dataset becomes a stream (the stream name is the dataset name normalized to snake_case). Dataset names must be non-empty and unique after normalization.
For each dataset you provide:
- name: Display name for the stream.
- sql: The Druid SQL query used to read data.
- table_pattern (optional): A regular expression used to discover table names that can be substituted into the query. If provided, your SQL must include the
{{table}}placeholder as a standalone, unquoted identifier. - primary_key (optional): A comma-separated list of column names to use as the stream’s primary key.
- incremental_timestamp_field (optional): A timestamp column used for incremental syncs.
If you don’t configure any datasets, no streams will be available to sync.
Limitations
- Data loading is not yet supported. Sync runs will fail with a message indicating that destination loading is still in development.
- Only credential validation via the SQL endpoint is currently implemented.
Notes
- The connector queries Druid via the Broker SQL endpoint (
/druid/v2/sql). Provide the Broker base URL as theendpoint(HTTP/HTTPS), without embedded credentials, query parameters, or a URL fragment. - If you configure Basic authentication (
username/password), theendpointmust use HTTPS. Provide bothusernameandpassword, or leave both empty. - Stream names are derived from dataset names and normalized; dataset names must be non-empty and remain unique after normalization.
- If you use
table_patternwith a SQL template, the connector replaces the{{table}}placeholder only when it appears as a standalone, unquoted identifier.