<?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 JDBC table to delta table in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/jdbc-table-to-delta-table/m-p/23698#M559</link>
    <description>&lt;P&gt;Hello experts. We need to transfer couple of tables from our old system to Databricks through JDBC connection. So, the first step was to create the corresponding table as below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;CREATE TABLE IF NOT EXISTS jdbc_table&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;USING JDBC&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;OPTIONS (DRIVER = "DriverX", URL = "jdbc:xxxxxxxx", dbtable="table_name", user = "user1", password="pass" )&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since querying the above table is not efficient, we tried to create a delta table using the jdbc_table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;CREATE OR REPLACE TABLE table_name AS&amp;nbsp;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;&amp;nbsp;SELECT * FROM jdbc_table&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the above process is extremely slow and the table is not created at the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have any other suggestions in order to achieve this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Mar 2025 13:00:47 GMT</pubDate>
    <dc:creator>elgeo</dc:creator>
    <dc:date>2025-03-21T13:00:47Z</dc:date>
    <item>
      <title>JDBC table to delta table</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/jdbc-table-to-delta-table/m-p/23698#M559</link>
      <description>&lt;P&gt;Hello experts. We need to transfer couple of tables from our old system to Databricks through JDBC connection. So, the first step was to create the corresponding table as below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;CREATE TABLE IF NOT EXISTS jdbc_table&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;USING JDBC&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;OPTIONS (DRIVER = "DriverX", URL = "jdbc:xxxxxxxx", dbtable="table_name", user = "user1", password="pass" )&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since querying the above table is not efficient, we tried to create a delta table using the jdbc_table:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;CREATE OR REPLACE TABLE table_name AS&amp;nbsp;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;I&gt;&amp;nbsp;SELECT * FROM jdbc_table&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the above process is extremely slow and the table is not created at the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have any other suggestions in order to achieve this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 13:00:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/jdbc-table-to-delta-table/m-p/23698#M559</guid>
      <dc:creator>elgeo</dc:creator>
      <dc:date>2025-03-21T13:00:47Z</dc:date>
    </item>
  </channel>
</rss>

