Skip to main content

Databricks

Databricks is a cloud-based platform that unifies data engineering, data science, and machine learning workflows, enabling organizations to process, analyze, and govern large-scale data using a data lakehouse architecture.

Prerequisite

To establish a connection with Databricks as a connector, follow these steps:

  1. Log in to your Databricks workspace.

  2. In the sidebar, click SQL > SQL Warehouses.

  3. In the list of available warehouses, click the target warehouse's name.

  4. On the Connection Details tab, copy the connection details that you need, such as Server hostname, Port, and HTTP path.

Databricks account details Key
Databricks account details

Configuring Connector in DronaHQ

Configure your database category using the provided details. Validate connection with Test connection and Save settings for secure database setup.

General

FieldDescription
HostEnter the Server Host Name
PortEnter the Port number
HTTP PathEnter the HTTP Path
Default Name (optional)Enter the Database name
Default Schema (optional)Enter the Schema name
Personal Token AccessEnter the access key.
Databricks with Sample details.
Databricks with Sample details.

Admin

Advanced OptionDescription
Connection OptionsThe key and value connection options in database configuration refer to specific settings (keys) and their corresponding values that dictate how the application connects to the database
Whitelist IP Enhance security by restricting database access to specific whitelisted IP addresses.

Adding Database Queries

After configuring the connector, access it in your Connector Library.

Click Add query once the connection is established. Create queries, run them, and view responses.

Write Queries
Write Queries
tip

Use double curly brackets for dynamic variables. Test with sample values before saving. Link dynamic variables to controls/actions for runtime use.

Saved queries appear under your connector in Connector Library.

Using Databricks Connector

Data Bind using Data Query

Read/Display Data Query for Databricks:

Start by crafting an SQL query to extract data from your Databricks database. Consider a scenario where you want to retrieve names from the employees. The SQL query is:

Query used:

SELECT * FROM employees;

Query explanation:

This SQL query retrieves names from the employees.

Query example for retrieving data from Databricks.
Query example for retrieving data from Databricks.

Integrate the fetched data into your application's interface.

a. Access the Controls section and introduce the Table grid control.

b. Navigate to Data Bind Options -> Quick Select -> Connector Library.

c. Opt for the Databricks connector and choose the query that aligns with your data presentation goals.

By following these steps, you can seamlessly retrieve and display data from the employees table using the BigQuery Connector. The data is filtered and limited based on your specified criteria, enhancing your application's functionality and user experience.