<?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: Loading Tab Separated CSV file into Delta Tables in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-Tab-Separated-CSV-file-into-Delta-Tables/m-p/4075896#M3427</link>
    <description>&lt;P&gt;I see. I don't have experience with tab delimited csv.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested both with and without quotation marks now. Bo&lt;SPAN&gt;th got errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With quotation marks the error is "Bad CSV header line (...)".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without quotation marks the error I get is the same as the one you show.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tested loading a comma-delimited CSV into table and it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the problem seems to occur when trying to load tab-delimited csv into table.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Aug 2024 11:45:05 GMT</pubDate>
    <dc:creator>frithjof_v</dc:creator>
    <dc:date>2024-08-02T11:45:05Z</dc:date>
    <item>
      <title>Loading Tab Separated CSV file into Delta Tables</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-Tab-Separated-CSV-file-into-Delta-Tables/m-p/4071089#M3380</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to load a Tab Separated CSV file into Delta Tables from the lakehouse?&lt;/P&gt;&lt;P&gt;The image / error below explains well my paint point :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FabricRooky_0-1722420376193.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1142230i9E302F391A9213C8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FabricRooky_0-1722420376193.png" alt="FabricRooky_0-1722420376193.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess it is not possible? unless we use spark, or pipeline? can someone confirm?&lt;/P&gt;&lt;P&gt;This is not ideal as less user friendly &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 10:08:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-Tab-Separated-CSV-file-into-Delta-Tables/m-p/4071089#M3380</guid>
      <dc:creator>FabricRooky</dc:creator>
      <dc:date>2024-07-31T10:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Tab Separated CSV file into Delta Tables</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-Tab-Separated-CSV-file-into-Delta-Tables/m-p/4071773#M3391</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Are the column names in the csv wrapped inside quotation marks?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 15:54:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-Tab-Separated-CSV-file-into-Delta-Tables/m-p/4071773#M3391</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-07-31T15:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Tab Separated CSV file into Delta Tables</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-Tab-Separated-CSV-file-into-Delta-Tables/m-p/4072487#M3398</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/783544"&gt;@FabricRooky&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on my test, I have the same error when using the GUI Load to Tables feature and defining "\t" as separator.&amp;nbsp;It seems the "\t" cannot be recognized as an effective separator for the CSV file so&amp;nbsp;it reports this error.&amp;nbsp;I'll do some more test to look into whether we can replace "\t" with another character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As an alternative, you can use&amp;nbsp;Notebook to load data from CSV to Delta table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Open your current lakehouse, open or create a notebook.&amp;nbsp;Paste below code into a code cell. Modify the file path and table name accordingly. Then run the code cell. This will read data from the CSV file and write it into a new table or overwrite an existing table which has the same name.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="3" color="#0000FF"&gt;df = spark.read.format("csv").option("header","true").option("delimiter", "\t").load("Files/testfile.csv") &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;table_name = "testTable" &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3" color="#0000FF"&gt;df.write.mode("overwrite").format("delta").save("Tables/" + table_name) &lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Jing&lt;BR /&gt;&lt;EM&gt;If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos! &lt;/EM&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 01 Aug 2024 02:52:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-Tab-Separated-CSV-file-into-Delta-Tables/m-p/4072487#M3398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-01T02:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Tab Separated CSV file into Delta Tables</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-Tab-Separated-CSV-file-into-Delta-Tables/m-p/4075691#M3425</link>
      <description>&lt;P&gt;no, they are not in qutation marks... (no need, right)&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 09:52:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-Tab-Separated-CSV-file-into-Delta-Tables/m-p/4075691#M3425</guid>
      <dc:creator>FabricRookyµ007</dc:creator>
      <dc:date>2024-08-02T09:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Tab Separated CSV file into Delta Tables</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-Tab-Separated-CSV-file-into-Delta-Tables/m-p/4075693#M3426</link>
      <description>&lt;P&gt;This is exactly what I wanted to avoid&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":expressionless_face:"&gt;😑&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 09:53:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-Tab-Separated-CSV-file-into-Delta-Tables/m-p/4075693#M3426</guid>
      <dc:creator>FabricRookyµ007</dc:creator>
      <dc:date>2024-08-02T09:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Tab Separated CSV file into Delta Tables</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-Tab-Separated-CSV-file-into-Delta-Tables/m-p/4075896#M3427</link>
      <description>&lt;P&gt;I see. I don't have experience with tab delimited csv.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tested both with and without quotation marks now. Bo&lt;SPAN&gt;th got errors.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With quotation marks the error is "Bad CSV header line (...)".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Without quotation marks the error I get is the same as the one you show.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tested loading a comma-delimited CSV into table and it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the problem seems to occur when trying to load tab-delimited csv into table.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 11:45:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-Tab-Separated-CSV-file-into-Delta-Tables/m-p/4075896#M3427</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-08-02T11:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Tab Separated CSV file into Delta Tables</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-Tab-Separated-CSV-file-into-Delta-Tables/m-p/4082487#M3447</link>
      <description>&lt;P&gt;Please vote for this idea in order to highlight the need: &lt;A href="https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=94e5b20e-9baf-ee11-92bd-6045bd7d9d7c" target="_blank" rel="noopener"&gt;https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=94e5b20e-9baf-ee11-92bd-6045bd7d9d7c&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2024 22:09:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-Tab-Separated-CSV-file-into-Delta-Tables/m-p/4082487#M3447</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-08-05T22:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Tab Separated CSV file into Delta Tables</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-Tab-Separated-CSV-file-into-Delta-Tables/m-p/4083708#M3452</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/783544"&gt;@FabricRooky&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We have escalated it internally and got a confirmation that&amp;nbsp;Tab is treated as a whitespace in Spark which we use to convert the data to a delta table. It is not supported currently. Please vote up the &lt;A href="https://ideas.fabric.microsoft.com/ideas/idea/?ideaid=94e5b20e-9baf-ee11-92bd-6045bd7d9d7c" target="_blank" rel="noopener"&gt;Microsoft Idea&lt;/A&gt;.&amp;nbsp;It is in “Under Review” status which means this idea is under PG’s review.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/437984"&gt;@frithjof_v&lt;/a&gt;&amp;nbsp;Thank you for paying attention to this and providing the link to the idea.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Jing&lt;BR /&gt;&lt;EM&gt;If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos! &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 09:01:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Loading-Tab-Separated-CSV-file-into-Delta-Tables/m-p/4083708#M3452</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-06T09:01:55Z</dc:date>
    </item>
  </channel>
</rss>

