Databricks Query

Databricks Query

Certified

Run a SQL query on Databricks

Executes a SQL statement on a Databricks cluster or SQL warehouse through the JDBC driver. Renders connection values and SQL from the RunContext, then streams results to internal storage as an ION text file. Arrow is disabled with the Databricks JDBC driver on Java 21, which may reduce fetch throughput.

yaml
type: io.kestra.plugin.databricks.sql.Query
yaml
id: databricks_sql_query
namespace: company.team

tasks:
  - id: sql_query
    type: io.kestra.plugin.databricks.sql.Query
    accessToken: "{{ secret('DATABRICKS_TOKEN') }}"
    host: <your-host>
    httpPath: <your-httpPath>
    sql: SELECT 1
Properties

Databricks host

Server hostname without protocol, e.g. adb-12345.7.azuredatabricks.net

Databricks cluster HTTP Path

HTTP Path from the cluster connection details (Advanced options → JDBC/ODBC).

SQL query to execute

SQL text rendered with Flow variables before execution

Databricks access token

Personal Access Token passed as the JDBC password; render from secrets

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150

Catalog used for the connection

Sets ConnCatalog on the JDBC URL when provided

Additional JDBC properties

Optional map merged into the Databricks driver properties after authentication

Schema used for the connection

Sets ConnSchema on the JDBC URL when provided

Time zone for temporal values

Timezone used when converting date/time columns; defaults to the worker JVM time zone

Number of fetched rows

Formaturi

Result file URI

Internal storage URI of the ION text file containing fetched rows

Query result size