cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
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
Databricks Employee
Databricks Employee

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
Databricks Employee
Databricks Employee

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')

);

โ€‹

โ€‹

โ€‹

โ€‹

โ€‹

โ€‹

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group