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.
Showing results for 
Search instead for 
Did you mean: 

Connect to PostgreSQL to Databricks community edition error

Contributor II

Dear Team,

I am trying to establish a connectivity to PostgreSQL to Databricks community edition using sql notebook

however I am encountering the below error

Error in SQL statement: IllegalArgumentException: requirement failed: Host name should not contain query strings or parameters.

# using the below SQL from the databricks sytax

DROP TABLE IF EXISTS postgresql_table;
CREATE TABLE postgresql_table
USING postgresql
 dbtable 'orders',
  host 'postgresql://',
  port '5432',
  database 'itworld_sms_db',
  user 'world_sms_user',
  password 'xxxxxxx'
username = itworld_sms_user
password = xxxxxxx
hostname =
port = 5432
database = itworld_sms_db*/

my questions are the following

1) can we establish connectivity using a community edition notebook ?

2) if yes to question 1 then what is wrong with the above syntax?


Contributor II


any suggestions ?

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!