New to Kestra?
Use blueprints to kickstart your first workflows.
Run Databricks SQL queries with Kestra, export lakehouse results to CSV, and analyze them in Python with Pandas in one automated, declarative pipeline.
Pull data out of your Databricks lakehouse with a SQL query, hand the results to Python, and analyze them with Pandas, all in one declarative pipeline. This blueprint connects Databricks SQL warehouses to your broader data stack so analytics engineers and data scientists can collaborate on the same automated, reproducible workflow instead of trading manual CSV exports.
sql_query task (io.kestra.plugin.databricks.sql.Query) connects to
a Databricks SQL warehouse using accessToken, host, and an httpPath,
then runs the SQL statement (SELECT * FROM samples.nyctaxi.trips LIMIT 100)
and stores the result set as an internal output.csv task (io.kestra.plugin.serdes.csv.IonToCsv) reads
{{ outputs.sql_query.uri }} and converts Kestra's internal Ion format
into a portable CSV file.pandas task (io.kestra.plugin.scripts.python.Script) installs the
pandas dependency, loads the CSV with pd.read_csv, and inspects it with
df.head(), ready for any transformation or analysis you add.Databricks Workflows can schedule notebooks and SQL inside Databricks, but Kestra orchestrates the steps that live outside it: format conversion, arbitrary Python with its own dependencies, and downstream handoffs. With Kestra you get event and schedule triggers, automatic retries on transient failures, full execution lineage across the SQL and Python steps, and a declarative YAML definition you can version control, all without coupling your orchestration to a single vendor's scheduler.
httpPath of that warehouse (Connection details tab).DATABRICKS_TOKEN: a Databricks personal access token used as accessToken.DATABRICKS_HOST: your workspace host (for example, dbc-xxxx.cloud.databricks.com).DATABRICKS_TOKEN and DATABRICKS_HOST secrets to your Kestra instance.httpPath value with your own SQL warehouse path.SELECT for a query against your tables.pandas task logs for the DataFrame preview.IonToCsv with a Parquet or JSON serializer for downstream tools.