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

connect rds from databricks sql editor

pinaki1
New Contributor III

Is it possible to connect and execute query directly from rds in sql editor without using unity catelog

5 REPLIES 5

-werners-
Esteemed Contributor III

what do you mean by RDS?

Databricks SQL works fine without Unity enabled and can be accessed by all kinds of tools using ODBC/JDBC.

pinaki1
New Contributor III

rds means AWS rds. Remote postgres server

luis_herrera
New Contributor III
New Contributor III

Hi there,

Yes, you could do federated queries from DB SQL Editor. This is an experimental feature, though. UC is actually not supported.

You can read more here:

https://docs.databricks.com/query-federation/index.html

PS: check out #DAIS2023 talks

pinaki1
New Contributor III

its not working. getting error like this

image

luis_herrera
New Contributor III
New Contributor III

Databricks SQL supports read-only query federation to PostgreSQL on serverless and pro SQL warehouses. I would check first you are using the right flavor of SQL warehouse. Could you post the code you are using (without credentials)?

DROP TABLE IF EXISTS postgresql_table;

CREATE TABLE postgresql_table

USING postgresql

OPTIONS (

dbtable '<table-name>',

host '<database-host-url>',

port '5432',

database '<database-name>',

user secret('postgres_creds', 'my_username'),

password secret('postgres_creds', 'my_password')

);

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.