Connect Databricks
Tables and SQL on a SQL warehouse. How to connect Databricks to SyncStudio, what to enter, and what you can import into Google Sheets™.
- Data warehouse
- Credentials
- Choose table
- SQL
- Connection links
Before you start
- Open a spreadsheet in Google Sheets and start SyncStudio from Extensions → SyncStudio → Open SyncStudio. The first-import guide covers installing it.
- Use credentials made for reading only: a read-only database user, or an API key with read scopes. SyncStudio never needs to change anything in Databricks to import from it.
- A query is sent as one statement inside a SELECT, so it cannot change data. Use a token whose user can only read.
Connect it
- Add the source In the sidebar, press Add a source and choose Databricks. You can type its name in the search box.
- Fill in the form The form asks for:
Field What to enter Workspace host From the address bar of your workspace, without https://. For example dbc-a1b2c3d4-e5f6.cloud.databricks.com.SQL warehouse The warehouse ID, or the HTTP path from its Connection details tab. For example /sql/1.0/warehouses/abc123def456.Personal access token · kept secret Settings → Developer → Access tokens. For example dapi….Catalog (optional) Leave empty to use the workspace default. For example main.Schema (optional) Needed for hive_metastore, which cannot list tables across schemas. For example default.Client (optional) If you work for several clients: a label to filter imports by. - Test and save Give the connection a name your team will recognise. SyncStudio tests it before saving it; if the test fails, the message says what Databricks answered.
- Or send a link If someone else holds the credentials, press Send this link to whoever has the details. The link works once, for 7 days, and shows them only this form.
Credentials are encrypted before they are stored, and no part of SyncStudio shows them again. To change them, edit the connection and enter them anew. See Connecting a source.
What you can import
Choose a table, the fields you want, and filters. The list comes from Databricks itself once the connection is made.
Or write one SELECT statement. It runs read-only, and a preview shows the first rows before anything is written. See Choosing the data.
Next steps
- Build your first import from this connection.
- Choose how often it refreshes, and get told if a refresh fails.
- See the Databricks page for what SyncStudio does with Databricks.