<?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: Best way to automatically update a delta table schema in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/best-way-to-automatically-update-a-delta-table-schema/m-p/27319#M19196</link>
    <description>&lt;P&gt;Thanks for the reply @Pat Sienkiewicz​&amp;nbsp;.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Nov 2022 09:38:05 GMT</pubDate>
    <dc:creator>hari</dc:creator>
    <dc:date>2022-11-01T09:38:05Z</dc:date>
    <item>
      <title>Best way to automatically update a delta table schema</title>
      <link>https://community.databricks.com/t5/data-engineering/best-way-to-automatically-update-a-delta-table-schema/m-p/27317#M19194</link>
      <description>&lt;P&gt;We have multiple environments where the same tables are added so it's really hard to manually update the schema of the table across all the environments. We know that it's not ideal to update table schema a lot but our product is still evolving and schema changes will occur more frequently than in an ideal case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that databricks has released a databricks_table resource into the public preview. Really excited to see how it evolves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know if terraform stack apply can handle changes to the schema?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, How does it update the data? Will it rewrite all data every time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is there a better way to track and apply table schema changes preferably with software development best practices something like table definition as code&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 13:16:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/best-way-to-automatically-update-a-delta-table-schema/m-p/27317#M19194</guid>
      <dc:creator>hari</dc:creator>
      <dc:date>2022-10-14T13:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to automatically update a delta table schema</title>
      <link>https://community.databricks.com/t5/data-engineering/best-way-to-automatically-update-a-delta-table-schema/m-p/27318#M19195</link>
      <description>&lt;P&gt;Hi @Harikrishnan P H​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wouldn't recommend using `terraform` databricks_table for Unity Catalog Delta Tables. The schema update doesn't work at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below error while trying to add/remove column (Delta table):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Error: cannot update table: A table's Delta metadata can only be changed from a cluster or warehouse...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please check this also:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/databricks/terraform-provider-databricks/issues/1624" alt="https://github.com/databricks/terraform-provider-databricks/issues/1624" target="_blank"&gt;https://github.com/databricks/terraform-provider-databricks/issues/1624&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"so there are quite a few gaps/edge cases with the tables API, hence customers should not use the API or Terraform to create/manage Unity Catalog tables &amp;amp; views at the moment."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though, you can create delta tables using terraform, I tested later on from the UI both commands:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;show create table;
&amp;nbsp;
describe table;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;they fail to show the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 09:08:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/best-way-to-automatically-update-a-delta-table-schema/m-p/27318#M19195</guid>
      <dc:creator>Pat</dc:creator>
      <dc:date>2022-11-01T09:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to automatically update a delta table schema</title>
      <link>https://community.databricks.com/t5/data-engineering/best-way-to-automatically-update-a-delta-table-schema/m-p/27319#M19196</link>
      <description>&lt;P&gt;Thanks for the reply @Pat Sienkiewicz​&amp;nbsp;.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 09:38:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/best-way-to-automatically-update-a-delta-table-schema/m-p/27319#M19196</guid>
      <dc:creator>hari</dc:creator>
      <dc:date>2022-11-01T09:38:05Z</dc:date>
    </item>
  </channel>
</rss>

