<?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: load new data in delta table in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/load-new-data-in-delta-table/m-p/12281#M7112</link>
    <description>&lt;P&gt;You can specify the directory and select the files you want to import. Copy into is increment by default so it will append the data. Here is a code example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;COPY INTO table1 FROM 'folder location'
FILEFORMAT = CSV
FILES = ('1.csv', '2.csv')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 20:27:53 GMT</pubDate>
    <dc:creator>Hubert-Dudek</dc:creator>
    <dc:date>2023-01-12T20:27:53Z</dc:date>
    <item>
      <title>load new data in delta table</title>
      <link>https://community.databricks.com/t5/data-engineering/load-new-data-in-delta-table/m-p/12280#M7111</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know how to update new data in delta table from new csv file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the code that i have used to create delta table from csv file and loaded data. but i have go new updated file and trying to load new data but not able to any guidance would help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt;%sql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET spark.databricks.delta.schema.autoMerge.enabled = true;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create table if not exists catlog.schema.tablename;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COPY INTO catlog.schema.tablename&lt;/P&gt;&lt;P&gt;  FROM (SELECT *  FROM 's3://bucket/test.csv') &lt;/P&gt;&lt;P&gt;    FILEFORMAT = CSV &lt;/P&gt;&lt;P&gt;    FORMAT_OPTIONS ('mergeSchema' = 'true', 'header' = 'true')&lt;/P&gt;&lt;P&gt;but i have new file with additional data. how can i load that please guide?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;need to load new datafile in delta table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 15:52:23 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/load-new-data-in-delta-table/m-p/12280#M7111</guid>
      <dc:creator>patdev</dc:creator>
      <dc:date>2023-01-12T15:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: load new data in delta table</title>
      <link>https://community.databricks.com/t5/data-engineering/load-new-data-in-delta-table/m-p/12281#M7112</link>
      <description>&lt;P&gt;You can specify the directory and select the files you want to import. Copy into is increment by default so it will append the data. Here is a code example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;COPY INTO table1 FROM 'folder location'
FILEFORMAT = CSV
FILES = ('1.csv', '2.csv')&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 20:27:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/load-new-data-in-delta-table/m-p/12281#M7112</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2023-01-12T20:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: load new data in delta table</title>
      <link>https://community.databricks.com/t5/data-engineering/load-new-data-in-delta-table/m-p/12282#M7113</link>
      <description>&lt;P&gt;Thank you, i tried that and it ended in error, the table created with delta are from csv which must have converted to parquet file and all the columns are varchar or string. so not if i want to entered new file it ends in incmopatibility error for datatypes&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 21:13:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/load-new-data-in-delta-table/m-p/12282#M7113</guid>
      <dc:creator>patdev</dc:creator>
      <dc:date>2023-01-12T21:13:19Z</dc:date>
    </item>
  </channel>
</rss>

