<?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: table deployment (DDL) from one catalog to another in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/table-deployment-ddl-from-one-catalog-to-another/m-p/91748#M1898</link>
    <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I'll step through this solution and see if I can get it working&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 16:06:05 GMT</pubDate>
    <dc:creator>dpc</dc:creator>
    <dc:date>2024-09-25T16:06:05Z</dc:date>
    <item>
      <title>table deployment (DDL) from one catalog to another</title>
      <link>https://community.databricks.com/t5/administration-architecture/table-deployment-ddl-from-one-catalog-to-another/m-p/91432#M1872</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;We have a development, a test and a production environment&lt;/P&gt;&lt;P&gt;How do you generally deploy DDL changes?&lt;/P&gt;&lt;P&gt;So, alter a table in development and apply to test then production&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;table1 has column1, column2, column3&lt;/P&gt;&lt;P&gt;I add column4&lt;/P&gt;&lt;P&gt;I now want to deploy this change to production&lt;/P&gt;&lt;P&gt;I also want to retain data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2024 13:19:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/table-deployment-ddl-from-one-catalog-to-another/m-p/91432#M1872</guid>
      <dc:creator>dpc</dc:creator>
      <dc:date>2024-09-23T13:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: table deployment (DDL) from one catalog to another</title>
      <link>https://community.databricks.com/t5/administration-architecture/table-deployment-ddl-from-one-catalog-to-another/m-p/91478#M1876</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/108745"&gt;@dpc&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Managing DDL changes accross environments (dev, test, prod) will be a part of your CI/CD pipeline.&lt;/LI&gt;&lt;LI&gt;Create a Deployments folder, with subfolders. Each deployment will be represented by a timestamped folder. Example folder structure:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;/Deployments
    /Deployments_20240924
        /01_add_column4_table1.sql
        /02_alter_other_table.sql
    /Deployments_20240930
        /01_create_new_table.sql
        /02_update_table1.sql&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Inside the folder, each script (e.g., 01_add_column4_table1.sql) represents individual DDL changes (like adding a column or altering a table).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;You can then integrate your CI/CD pipeline with the deployment folder&lt;OL&gt;&lt;LI&gt;Add deployment folder name to your CI/CD pipeline&lt;/LI&gt;&lt;LI&gt;After your notebooks are deployed, add to the pipeline the step to run the Notebooks that are inside the provided deployment pipeline&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;Alternatively, for every deployment you can create a deployment Job. Each job will have multiple tasks, where each task represent a specific DDL change. In the example, you would create Deployment_20240924 job, that would have 2 steps: to run 01_add_column4_table1.sql and then to run 02_alter_other_table.sql.&lt;OL&gt;&lt;LI&gt;Running the job could also be a step in your CI/CD pipeline&lt;/LI&gt;&lt;LI&gt;Alternatively, the job could already be scheduled to run at a given time (but you need to know when you deployment is going to happen&lt;/LI&gt;&lt;LI&gt;Alternatively, the job could be run manually after the CI/CD pipeline finishes deploying the notebooks&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 23 Sep 2024 17:28:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/table-deployment-ddl-from-one-catalog-to-another/m-p/91478#M1876</guid>
      <dc:creator>filipniziol</dc:creator>
      <dc:date>2024-09-23T17:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: table deployment (DDL) from one catalog to another</title>
      <link>https://community.databricks.com/t5/administration-architecture/table-deployment-ddl-from-one-catalog-to-another/m-p/91748#M1898</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I'll step through this solution and see if I can get it working&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 16:06:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/table-deployment-ddl-from-one-catalog-to-another/m-p/91748#M1898</guid>
      <dc:creator>dpc</dc:creator>
      <dc:date>2024-09-25T16:06:05Z</dc:date>
    </item>
  </channel>
</rss>

