<?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: Fabric I have created a Dataframe in Notebook using pyspark. now I want to create a Delta PARQUE in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-I-have-created-a-Dataframe-in-Notebook-using-pyspark-now/m-p/3826636#M1850</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/76077"&gt;@DebbieE&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Inorder to create table, you need use the below code..&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Method 1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;df.write.mode("overwrite").format("delta").saveAsTable("abc5")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vgchennamsft_0-1712742498339.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1075898i785C0BA0D302C005/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vgchennamsft_0-1712742498339.png" alt="vgchennamsft_0-1712742498339.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;In your case, you just missed to include quotes.&lt;BR /&gt;&lt;BR /&gt;Method 2:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vgchennamsft_1-1712743126423.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1075911i35A40FB28E2B3FE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vgchennamsft_1-1712743126423.png" alt="vgchennamsft_1-1712743126423.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope this is helpful. Please let me know incase of further queries.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2024 09:59:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-04-10T09:59:45Z</dc:date>
    <item>
      <title>Fabric I have created a Dataframe in Notebook using pyspark. now I want to create a Delta PARQUET</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-I-have-created-a-Dataframe-in-Notebook-using-pyspark-now/m-p/3814092#M1846</link>
      <description>&lt;P&gt;Fabric I have created a Dataframe in Notebook using pyspark. now I want to create a Delta PARQUET&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I assume it is going into here&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tables.png" style="width: 261px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1073298iE04221157A1798AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tables.png" alt="Tables.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I use the Code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;FONT face="lucida sans unicode,lucida sans"&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; DeltaTable&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;FONT face="lucida sans unicode,lucida sans"&gt;&lt;SPAN&gt;dfcont.write.format(&lt;/SPAN&gt;&lt;SPAN&gt;"parquet"&lt;/SPAN&gt;&lt;SPAN&gt;).mode(&lt;/SPAN&gt;&lt;SPAN&gt;"overwrite"&lt;/SPAN&gt;&lt;SPAN&gt;).save(&lt;/SPAN&gt;&lt;SPAN&gt;"Data/silver/parquet_table"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Which is where I would like the PARQUET file to sit but its just throwing errors&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for example&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;Py4JJavaError&lt;/SPAN&gt;: An error occurred while calling o6222.save. : Operation failed: "Bad Request", 400, HEAD, &lt;A href="http://onelake.dfs.fabric.microsoft.com/cb0d4c81-7750-4e3b-9192-605359abb083/da5a0bf1-6d37-4baa-a7d6-d714fd97e60e/Data/silver/parquet_table?upn=false&amp;amp;action=getStatus&amp;amp;timeout=90" target="_blank" rel="noopener"&gt;http://onelake.dfs.fabric.microsoft.com/cb0d4c81-7750-4e3b-9192-605359abb083/da5a0bf1-6d37-4baa-a7d6-d714fd97e60e/Data/silver/parquet_table?upn=false&amp;amp;action=getStatus&amp;amp;timeout=90&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I am having an issue with this coming up too&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NotebookOpeningOnnotdefaultIssue.png" style="width: 268px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1073299iB81A1E2B5EE14275/image-size/large?v=v2&amp;amp;px=999" role="button" title="NotebookOpeningOnnotdefaultIssue.png" alt="NotebookOpeningOnnotdefaultIssue.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;When I go to data sources Lake houses existing Lakehouses. The Lakehouse containing the data is greyed out I cant select it. im wondering if thats part of the issue?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;This is the last step and it would be great to create my first PARQUET File&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Apr 2024 16:15:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-I-have-created-a-Dataframe-in-Notebook-using-pyspark-now/m-p/3814092#M1846</guid>
      <dc:creator>DebbieE</dc:creator>
      <dc:date>2024-04-05T16:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric I have created a Dataframe in Notebook using pyspark. now I want to create a Delta PARQUE</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-I-have-created-a-Dataframe-in-Notebook-using-pyspark-now/m-p/3814315#M1847</link>
      <description>&lt;P&gt;Depending on your desired result, there are different methods.&amp;nbsp; The method you are using will write a parquet file to the Files location.&amp;nbsp; If you want to create a Delta table, you should use the saveAsTable function with "delta" as the format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep in mind that table names &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/load-to-tables#validation-guidelines-and-rules" target="_self"&gt;can only contain alphanumeric characters and underscores&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the &lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-notebook-load-data#load-data-with-an-apache-spark-api" target="_self"&gt;documentation&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Keep it if you want to save dataframe as CSV files to Files section of the default Lakehouse

df.write.mode("overwrite").format("csv").save("Files/ " + csv_table_name)

# Keep it if you want to save dataframe as Parquet files to Files section of the default Lakehouse

df.write.mode("overwrite").format("parquet").save("Files/" + parquet_table_name)

# Keep it if you want to save dataframe as a delta lake, parquet table to Tables section of the default Lakehouse

df.write.mode("overwrite").format("delta").saveAsTable(delta_table_name)

# Keep it if you want to save the dataframe as a delta lake, appending the data to an existing table

df.write.mode("append").format("delta").saveAsTable(delta_table_name)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2024 18:52:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-I-have-created-a-Dataframe-in-Notebook-using-pyspark-now/m-p/3814315#M1847</guid>
      <dc:creator>smoqt</dc:creator>
      <dc:date>2024-04-05T18:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric I have created a Dataframe in Notebook using pyspark. now I want to create a Delta PARQUE</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-I-have-created-a-Dataframe-in-Notebook-using-pyspark-now/m-p/3818435#M1848</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/76077"&gt;@DebbieE&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if your query was answered. Otherwise, will respond back with the more details and we will try to help.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 08:16:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-I-have-created-a-Dataframe-in-Notebook-using-pyspark-now/m-p/3818435#M1848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-08T08:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric I have created a Dataframe in Notebook using pyspark. now I want to create a Delta PARQUE</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-I-have-created-a-Dataframe-in-Notebook-using-pyspark-now/m-p/3820113#M1849</link>
      <description>&lt;P&gt;I am confused with this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;df.write.mode("overwrite").format("delta").saveAsTable(delta_table_name)&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class=""&gt;NameError&lt;/SPAN&gt;&lt;SPAN&gt;: name 'DimContestant' is not defined It doesnt exist as its beand new so this doesnt work for me&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ahhhh I found out you have to do this&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"DimContestant"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;as an aside. Is there anyway you can include a file path or do they all just go straight into the table folder with no file path mentioned?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Apr 2024 14:45:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-I-have-created-a-Dataframe-in-Notebook-using-pyspark-now/m-p/3820113#M1849</guid>
      <dc:creator>DebbieE</dc:creator>
      <dc:date>2024-04-08T14:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric I have created a Dataframe in Notebook using pyspark. now I want to create a Delta PARQUE</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-I-have-created-a-Dataframe-in-Notebook-using-pyspark-now/m-p/3826636#M1850</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/76077"&gt;@DebbieE&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Inorder to create table, you need use the below code..&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Method 1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;df.write.mode("overwrite").format("delta").saveAsTable("abc5")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vgchennamsft_0-1712742498339.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1075898i785C0BA0D302C005/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vgchennamsft_0-1712742498339.png" alt="vgchennamsft_0-1712742498339.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;In your case, you just missed to include quotes.&lt;BR /&gt;&lt;BR /&gt;Method 2:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vgchennamsft_1-1712743126423.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1075911i35A40FB28E2B3FE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vgchennamsft_1-1712743126423.png" alt="vgchennamsft_1-1712743126423.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Hope this is helpful. Please let me know incase of further queries.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 09:59:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-I-have-created-a-Dataframe-in-Notebook-using-pyspark-now/m-p/3826636#M1850</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-10T09:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fabric I have created a Dataframe in Notebook using pyspark. now I want to create a Delta PARQUE</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-I-have-created-a-Dataframe-in-Notebook-using-pyspark-now/m-p/3830092#M1851</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/76077"&gt;@DebbieE&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Glad to know that your query got resolved. Please continue using Fabric Community on your further queries.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 08:42:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Fabric-I-have-created-a-Dataframe-in-Notebook-using-pyspark-now/m-p/3830092#M1851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-04-11T08:42:53Z</dc:date>
    </item>
  </channel>
</rss>

