<?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: how to modify data type of a column explicitly via DBSQL in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/how-to-modify-data-type-of-a-column-explicitly-via-dbsql/m-p/89311#M1533</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;In place schema adjustment =&amp;gt;&lt;BR /&gt;Then&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;ALTER TABLE XXX ADD/DROP COLUMN XXX INT&lt;BR /&gt;Example&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;create table test (id int, first_name string, last_name string ); insert into test values (1, 'john', 'smith'); alter table test add column age int; select * from test&lt;/PRE&gt;&lt;DIV class=""&gt;Create a new table with an adjusted Schema =&amp;gt;&lt;BR /&gt;Then CTAS should do the trickCREATE OR REPLACE TABLE [new_table] AS ( SELECT * FROM OLD_TABLE ... )&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 10 Sep 2024 14:41:08 GMT</pubDate>
    <dc:creator>xwen</dc:creator>
    <dc:date>2024-09-10T14:41:08Z</dc:date>
    <item>
      <title>how to modify data type of a column explicitly via DBSQL</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-modify-data-type-of-a-column-explicitly-via-dbsql/m-p/89268#M1532</link>
      <description>&lt;P&gt;&lt;SPAN&gt;is there a SQL equivalent of&amp;nbsp;&lt;/SPAN&gt;overwriteSchema&lt;SPAN&gt;&amp;nbsp;?&lt;/SPAN&gt;&lt;A class="" href="https://docs.databricks.com/en/delta/update-schema.html#explicitly-update-schema-to-change-column-type-or-name" target="_blank" rel="noopener noreferrer"&gt;https://docs.databricks.com/en/delta/update-schema.html#explicitly-update-schema-to-change-column-type-or-name&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Sep 2024 10:01:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-modify-data-type-of-a-column-explicitly-via-dbsql/m-p/89268#M1532</guid>
      <dc:creator>xwen</dc:creator>
      <dc:date>2024-09-10T10:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to modify data type of a column explicitly via DBSQL</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/how-to-modify-data-type-of-a-column-explicitly-via-dbsql/m-p/89311#M1533</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;In place schema adjustment =&amp;gt;&lt;BR /&gt;Then&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;ALTER TABLE XXX ADD/DROP COLUMN XXX INT&lt;BR /&gt;Example&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;create table test (id int, first_name string, last_name string ); insert into test values (1, 'john', 'smith'); alter table test add column age int; select * from test&lt;/PRE&gt;&lt;DIV class=""&gt;Create a new table with an adjusted Schema =&amp;gt;&lt;BR /&gt;Then CTAS should do the trickCREATE OR REPLACE TABLE [new_table] AS ( SELECT * FROM OLD_TABLE ... )&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 Sep 2024 14:41:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/how-to-modify-data-type-of-a-column-explicitly-via-dbsql/m-p/89311#M1533</guid>
      <dc:creator>xwen</dc:creator>
      <dc:date>2024-09-10T14:41:08Z</dc:date>
    </item>
  </channel>
</rss>

