<?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: Understanding Spark Architecture during Table Creation in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/understanding-spark-architecture-during-table-creation/m-p/64036#M6821</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/96694"&gt;@Ramakrishnan83&lt;/a&gt;&amp;nbsp; - Kindly go through the blog post -&amp;nbsp;&lt;A href="https://www.databricks.com/blog/2019/08/21/diving-into-delta-lake-unpacking-the-transaction-log.html" target="_blank"&gt;https://www.databricks.com/blog/2019/08/21/diving-into-delta-lake-unpacking-the-transaction-log.html&lt;/A&gt;&amp;nbsp;which discuss in detail on delta's transaction log.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Mar 2024 22:08:54 GMT</pubDate>
    <dc:creator>shan_chandra</dc:creator>
    <dc:date>2024-03-18T22:08:54Z</dc:date>
    <item>
      <title>Understanding Spark Architecture during Table Creation</title>
      <link>https://community.databricks.com/t5/get-started-discussions/understanding-spark-architecture-during-table-creation/m-p/64009#M6820</link>
      <description>&lt;P&gt;Team ,&lt;/P&gt;&lt;P&gt;I am trying understand how the parquet files and JSON under the delta log folder stores the data behind the scenes&lt;/P&gt;&lt;P&gt;Table Creation:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;from&lt;/SPAN&gt;&lt;SPAN&gt; delta.tables &lt;/SPAN&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; *&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;DeltaTable.create(spark) \&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;.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t;%sql&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;INSERT&lt;/SPAN&gt; &lt;SPAN&gt;INTO&lt;/SPAN&gt;&lt;SPAN&gt; employee values(&lt;/SPAN&gt;&lt;SPAN&gt;100&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"Ram"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"CSE"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;1000&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Step 3:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;%sql&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;select&lt;/SPAN&gt; &lt;SPAN&gt;*&lt;/SPAN&gt; &lt;SPAN&gt;from&lt;/SPAN&gt; &lt;SPAN&gt;delta&lt;/SPAN&gt;&lt;SPAN&gt;.`/FileStore/tables/delta/demo2`&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramakrishnan83_0-1710772217666.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6689i61FE9698C200B8E0/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Ramakrishnan83_0-1710772217666.png" alt="Ramakrishnan83_0-1710772217666.png" /&gt;&lt;/span&gt;&lt;P&gt;Note: I made 2 inserts , so 2 parquet files&lt;/P&gt;&lt;P&gt;Challenge:&lt;/P&gt;&lt;P&gt;I am trying to read the JSON, CRC and Parquet files to see the contents in it . But I am getting the errors&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramakrishnan83_1-1710772318911.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6690i4327F64E535DAC8E/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Ramakrishnan83_1-1710772318911.png" alt="Ramakrishnan83_1-1710772318911.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;Output of this command give me the structure of a JSON , not the actual data stored&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ramakrishnan83_2-1710772374126.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6691iA34660D1DA586B0A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Ramakrishnan83_2-1710772374126.png" alt="Ramakrishnan83_2-1710772374126.png" /&gt;&lt;/span&gt;&lt;P&gt;Parquet file reading throws this error .&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: My cluster is running with DBR 12.2 LTS&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 Mar 2024 14:34:07 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/understanding-spark-architecture-during-table-creation/m-p/64009#M6820</guid>
      <dc:creator>Ramakrishnan83</dc:creator>
      <dc:date>2024-03-18T14:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding Spark Architecture during Table Creation</title>
      <link>https://community.databricks.com/t5/get-started-discussions/understanding-spark-architecture-during-table-creation/m-p/64036#M6821</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/96694"&gt;@Ramakrishnan83&lt;/a&gt;&amp;nbsp; - Kindly go through the blog post -&amp;nbsp;&lt;A href="https://www.databricks.com/blog/2019/08/21/diving-into-delta-lake-unpacking-the-transaction-log.html" target="_blank"&gt;https://www.databricks.com/blog/2019/08/21/diving-into-delta-lake-unpacking-the-transaction-log.html&lt;/A&gt;&amp;nbsp;which discuss in detail on delta's transaction log.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 22:08:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/understanding-spark-architecture-during-table-creation/m-p/64036#M6821</guid>
      <dc:creator>shan_chandra</dc:creator>
      <dc:date>2024-03-18T22:08:54Z</dc:date>
    </item>
  </channel>
</rss>

