Our September Product Update is coming!

Save your seat

How to use Databricks data in TheyDo

Once your Databricks integration is connected, you can:

  • Create a metric that pulls data from your Databricks tables using SQL queries
  • Sync qualitative data, like survey verbatims and open-text feedback, from Databricks into your DataHub (coming soon)

Overview

Databricks metrics in TheyDo are query-based. You write a SQL query that returns the data for your metric, and TheyDo fetches and displays it. You can use these metrics in journey steps or add them to your Metrics Library.

Creating a metric from Databricks

  1. Open a journey and select Add a metric, or go to the Metrics Library and select + Metric.
  2. Choose Databricks as the data source.
  3. Select the warehouse to connect to.
  4. Choose the metric type (CSAT, CES, NPS, RATIO, or Other).
  5. Enter a name for the metric.
  6. Write your SQL query using your connected Databricks table.
  7. Click Save and run — TheyDo will fetch the data and display it.

Note: If no data is available in the last 30 days, click Show latest data to retrieve the most recent available data points.

SQL query requirements

Your query must return the columns required for your metric type:

Metric type Required columns
CSAT date, positives, negatives, respondents
CES date, respondents, value
NPS date, detractors, promoters, respondents
RATIO date, numerator, denominator
OTHER date, value

If your Databricks table uses different column names, use SQL aliasing:

SELECT det AS detractors, prom AS promoters, resp AS respondents, dt AS date FROM my_catalog.my_schema.nps_table

Using dimensions in your metric

Columns in your query beyond the required ones, like country, channel, or plan, automatically become dimensions. You can filter your metric by dimension directly in a journey, without writing a new query for each variation.

For example, one query with a channel column lets you create filtered views like Sign-ups (Mobile) and Sign-ups (Web) from the same metric.

Tips

  • Work with your data team to prepare and validate queries before setting up metrics.
  • If you have multiple Databricks instances connected, make sure to select the correct one.
  • For PrivateLink or advanced setup questions, reach out to support.

Further reading