docs/versioned_docs/version-2.50.0-LTS/data-sources/databricks.md
Databricks is a cloud-based platform for data processing, analytics, and machine learning. ToolJet connects to Databricks, allowing your applications to access and update your data in your Databricks Warehouses directly using SQL queries.
<div style={{textAlign: 'center'}}> </div> <div style={{paddingTop:'24px'}}>ToolJet's Databricks integration relies on a configuration form that supports the following parameters:
62596234423488486.6.gcp.databricks.com./sql/1.0/warehouses/44899g7346c19m95.dapi783c7d155d138d8cf14.443.Navigate to your Databricks workspace, select the desired SQL Warehouse, and find Server Hostname and HTTP Path within the connection details tab.
To generate a personal access token, access your Databricks User Settings, select the Developer tab, click Manage under Access Tokens, and then click on the Generate New Token button.
Navigate to the Databricks datasource configuration form in ToolJet, fill in the required parameters, and click the Save button. You can test the connection by clicking the Test Connection button.
:::tip You can apply transformations to the query results. Refer to our transformations documentation for more information: link :::
</div> <div style={{paddingTop:'24px'}}>Databricks supports standard SQL commands for data manipulation tasks.
The following example demonstrates how to read data from a table. The query selects all the columns from the customers table.
SELECT * FROM customers
The following example demonstrates how to write data to a table. The query inserts a new row into the customers table.
INSERT INTO customers (
customer_id,
first_name,
last_name,
email,
phone,
city,
state,
zip_code,
country
) VALUES (
'1001'
'Tom',
'Hudson',
'[email protected]',
'50493552',
'San Clemente',
'CA',
'92673',
'USA'
);
The following example demonstrates how to update data in a table. The query updates the first_name and email column of the customers table.
UPDATE customer
SET first_name = 'John',
email = '[email protected]'
WHERE customer_id = 1001;
The following example demonstrates how to delete data from a table. The query deletes a row from the customers table.
DELETE FROM customer
WHERE customer_id = 1001;