This connector allows you to connect to a Databricks instance and execute SQL queries.

Connection configuration

Definition

NameMandatoryDefaultDescription
tokenyesa token generated from databricks. See the documentation
hostnameyesurl to databricks
databaseyesname of the database
http_pathyesthe value is available on JDBC/ODBC settings

Example

databricks_example:
  type: databricks
  hostname: adb-myproject.8.azuredatabricks.net
  database: default
  token:  $var.databricks_token
  http_path: /sql/1.0/warehouses/da000000000000000

Test case configuration

Definition

NameMandatoryDefaultDescription
connectionyesThe connection to use
queryyesThe query to execute to the database

Example

Example Databricks:
  source:
    connection: databricks_example
    type: databricks
    query: | 
        select * 
            from rh.employees
            where hire_date < "2000-01-01"
  expected:
    type: csv
    path: data/employeesbefore2000.csv