<?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: Read CSV file using SQL in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/read-csv-file-using-sql/m-p/5499#M1879</link>
    <description>&lt;P&gt;Hi Kaniz,&lt;/P&gt;&lt;P&gt;Thanks for your helpful reply. I guessed the same. I have never come across idbfs file system. Is this something new with Databricks ? Any reference would be helpful to get to the source.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2023 07:41:48 GMT</pubDate>
    <dc:creator>Rami2023</dc:creator>
    <dc:date>2023-04-21T07:41:48Z</dc:date>
    <item>
      <title>Read CSV file using SQL</title>
      <link>https://community.databricks.com/t5/data-engineering/read-csv-file-using-sql/m-p/5497#M1877</link>
      <description>&lt;P&gt;Hi, I am trying to reverse engineer to get to the source file for a table. Looking at the query history, I came across SQL string which loads data from file to table, however the code looks little mystery to me. I haven't come across idbfs, Can somebody help me understanding.&lt;/P&gt;&lt;P&gt;COPY INTO 'tablename_temp' FROM (&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;try_cast(`_type` AS string) `_type`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;try_cast(`ID` AS double) `ID`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;try_cast(`Number` AS string) `Number`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;try_cast(`Name` AS string) `Name`,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;try_cast(`Type` AS string) `Type`&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;'idbfs:/2023-03-29/10/_fe93bfcf-4ad6-4e14-b2d7-9811ddbc0c7d'&lt;/P&gt;&lt;P&gt;&amp;nbsp;) FILEFORMAT = CSV FORMAT_OPTIONS (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;'inferSchema' = 'true',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;'multiLine' = 'false',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;'header' = 'true',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;'delimiter' = ',',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;'escape' = '"',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;'mergeSchema' = 'true',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;'recursiveFileLookup' = 'true'&lt;/P&gt;&lt;P&gt;&amp;nbsp;) COPY_OPTIONS ('overwrite' = 'true', 'overwriteSchema' = 'true')&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2023 14:49:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/read-csv-file-using-sql/m-p/5497#M1877</guid>
      <dc:creator>Rami2023</dc:creator>
      <dc:date>2023-04-20T14:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Read CSV file using SQL</title>
      <link>https://community.databricks.com/t5/data-engineering/read-csv-file-using-sql/m-p/5499#M1879</link>
      <description>&lt;P&gt;Hi Kaniz,&lt;/P&gt;&lt;P&gt;Thanks for your helpful reply. I guessed the same. I have never come across idbfs file system. Is this something new with Databricks ? Any reference would be helpful to get to the source.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2023 07:41:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/read-csv-file-using-sql/m-p/5499#M1879</guid>
      <dc:creator>Rami2023</dc:creator>
      <dc:date>2023-04-21T07:41:48Z</dc:date>
    </item>
  </channel>
</rss>

