Skip to main content
Kubit connects directly to Databricks and queries your data in place. You create a SQL warehouse and a read-only service principal for Kubit. Nothing is copied out of your workspace.

Before you start

  • Workspace admin rights in Databricks, to create a SQL warehouse and a service principal
  • The catalog and schema that hold the views Kubit should query
  • If your workspace has IP access lists, Kubit’s IP ranges. See Allow Kubit’s IP ranges.

Steps

1

Create a SQL warehouse

Create a Serverless SQL warehouse for Kubit. Start with the smallest size and the settings in Warehouse configuration.
2

Create a service principal

Create a service principal for Kubit and give it three permissions:With Unity Catalog, the read grants look like this. Replace the names in angle brackets.
3

Add the connection in Kubit

Databricks Connection setup form
4

Split test and production (optional)

Create a second SQL warehouse and service principal for development. Keeping development queries off the production warehouse avoids any impact on live workloads.

Verify

Check the grants in a Databricks SQL editor. The output lists USE SCHEMA and SELECT for the Kubit service principal.

Best practices

Partitioning

Partition fact tables by an event date column. Partitions make Kubit’s queries faster and cheaper, since most reports filter on a date range. If your tables are already partitioned by year, month and day, Kubit uses those columns and you don’t need a separate date column.

Warehouse configuration

Four warehouse settings affect Kubit’s cost and speed. Databricks’ SQL warehouse sizing, scaling and queuing reference has the details.

Usage monitoring

Databricks’ monitoring tools show what Kubit’s queries cost:
  • Monitor a SQL warehouse
  • Monitor usage in the account console
  • Cost attribution queries on system tables
  • The query history system table
A stopped Serverless warehouse can start without a query to run. Opening a JDBC or ODBC connection, or a dashboard tied to the warehouse, starts it. Databricks’ “Start a SQL warehouse” page lists every trigger.

Next steps