<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Connect to PostgreSQL to Databricks community edition error in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/connect-to-postgresql-to-databricks-community-edition-error/m-p/14604#M9076</link>
    <description>&lt;P&gt;@Team&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions ? &lt;/P&gt;</description>
    <pubDate>Tue, 27 Dec 2022 20:52:28 GMT</pubDate>
    <dc:creator>db-avengers2rul</dc:creator>
    <dc:date>2022-12-27T20:52:28Z</dc:date>
    <item>
      <title>Connect to PostgreSQL to Databricks community edition error</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-to-postgresql-to-databricks-community-edition-error/m-p/14603#M9075</link>
      <description>&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to establish a connectivity to PostgreSQL to Databricks community edition using sql notebook&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however I am encountering the below error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Error in SQL statement: IllegalArgumentException: requirement failed: Host name should not contain query strings or parameters.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;# using the below SQL from the databricks sytax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/external-data/postgresql.html#using-the-postgresql-connector-in-databricks-runtime&amp;amp;language-sql" alt="https://docs.databricks.com/external-data/postgresql.html#using-the-postgresql-connector-in-databricks-runtime&amp;amp;language-sql" target="_blank"&gt;https://docs.databricks.com/external-data/postgresql.html#using-the-postgresql-connector-in-databricks-runtime&amp;amp;language-sql&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DROP TABLE IF EXISTS postgresql_table;
CREATE TABLE postgresql_table
USING postgresql
OPTIONS (
 dbtable 'orders',
  host 'postgresql://itworld_sms_user:itworld@pg.itworld.com:5432/itworld_sms_db',
  port '5432',
  database 'itworld_sms_db',
  user 'world_sms_user',
  password 'xxxxxxx'
);
&amp;nbsp;
example
&amp;nbsp;
/*postgresql://itworld_sms_user:xxxxxxx@pg.itworld.com:5432/itworld_sms_db
postgresql://&amp;lt;username&amp;gt;:&amp;lt;password&amp;gt;@&amp;lt;hostname&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;database&amp;gt;
&amp;nbsp;
username = itworld_sms_user
password = xxxxxxx
hostname = pg.itworld.com
port = 5432
database = itworld_sms_db*/&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;my questions are the following &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) can we establish connectivity using a community edition notebook ?&lt;/P&gt;&lt;P&gt;2) if yes to question 1 then what is wrong with the above syntax? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2022 19:57:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-to-postgresql-to-databricks-community-edition-error/m-p/14603#M9075</guid>
      <dc:creator>db-avengers2rul</dc:creator>
      <dc:date>2022-12-25T19:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Connect to PostgreSQL to Databricks community edition error</title>
      <link>https://community.databricks.com/t5/data-engineering/connect-to-postgresql-to-databricks-community-edition-error/m-p/14604#M9076</link>
      <description>&lt;P&gt;@Team&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions ? &lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 20:52:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/connect-to-postgresql-to-databricks-community-edition-error/m-p/14604#M9076</guid>
      <dc:creator>db-avengers2rul</dc:creator>
      <dc:date>2022-12-27T20:52:28Z</dc:date>
    </item>
  </channel>
</rss>

