cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to connect Databricks SQL with AWS Redshift DB?

LorenRD
Contributor

I would like to know if it's possible to connect Databricks SQL module with not just internal Metastore DB and tables from Data Science and Engineering module but also connect with an AWS Redshift DB to do queries and create alerts.

image 

1 ACCEPTED SOLUTION

Accepted Solutions

LorenRD
Contributor

Hi @Kaniz Fatma​ I contacted Customer support explaining this issue, they told me that this feature is not implemented yet but it's in the roadmap with no ETA. It would be great if you ping me back when it's possible to access Redshift tables from SQL module in Databricks SQL

View solution in original post

11 REPLIES 11

Hubert-Dudek
Esteemed Contributor III

@Lorenzo Rondan​ , I agree with your vision as we can register parquet from some s3; why not as a data mesh register anything, for example, Redshift or Azure SQL database.

Anonymous
Not applicable

@Lorenzo Rondan​ , You can create a table pointing to redshift in a python notebook and register that table with the metastore.

LorenRD
Contributor

Hi @Joseph Kambourakis​  can you give an example or link docs to do it? Thanks!

Hubert-Dudek
Esteemed Contributor III

Yes sorry, indeed there is CREATE TABLE USING JDBC driver, never tried it.

CREATE TABLE example_table
USING com.databricks.spark.redshift
OPTIONS (
  dbtable '<your-table-name>',
  tempdir 's3a://<your-bucket>/<your-directory-path>',
  url 'jdbc:redshift://<the-rest-of-the-connection-string>'
);

LorenRD
Contributor

@Hubert Dudek​ @Joseph Kambourakis​ 

After testing this new table pointing to redshift it doesn't work because com.databricks.spark.redshift is not a supported data source in Databricks SQL (Not delta like a normal DB/Tabled stored in S3)

image

Hubert-Dudek
Esteemed Contributor III

@Lorenzo Rondan​ , So it seems that this syntax USING com.databricks.spark.redshift is working only in notebook/standard workspace.

Databricks SQL endpoints have a different runtime. So let's hope that the unity catalog mentioned in error will include external systems.

User16725394280
Contributor II

@Lorenzo Rondan​ , Hi You can check on the below content and please search for Redshift.

https://docs.databricks.com/data

Kaniz
Community Manager
Community Manager

Hi @Lorenzo Rondan​  , Just a friendly follow-up. Do you still need help, or does @Hubert Dudek (Customer)​ 's and @Kiran Bharathi​ 's response help you to find the solution? Please let us know.

LorenRD
Contributor

Hi @Kaniz Fatma​ I contacted Customer support explaining this issue, they told me that this feature is not implemented yet but it's in the roadmap with no ETA. It would be great if you ping me back when it's possible to access Redshift tables from SQL module in Databricks SQL

Kaniz
Community Manager
Community Manager

Hi @Lorenzo Rondan​ , Would you mind marking your answer as the best as you received the customer support and the latest update on the issue? We'll ping you once it's available.

Done, thanks. Looking forward for your update.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.