<?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: Can only see first 1000 records while running query in fabric notebook in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-only-see-first-1000-records-while-running-query-in-fabric/m-p/3494504#M213</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/610802"&gt;@priyanksingh&lt;/a&gt;&lt;BR /&gt;I am not sure if it is in place in Databricks , as per this thread i think they are still working on that , apoloziges if you are able to see that and may be they did not updated the thread .&amp;nbsp;&lt;BR /&gt;I do not think we can have that set in Fabric at this time , but then you can use the .head() and that should do the trick .&lt;BR /&gt;&lt;BR /&gt;&lt;CODE class=""&gt;df.head(&lt;SPAN class=""&gt;10)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Himanshu&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Oct 2023 17:36:45 GMT</pubDate>
    <dc:creator>HimanshuS-msft</dc:creator>
    <dc:date>2023-10-24T17:36:45Z</dc:date>
    <item>
      <title>Can only see first 1000 records while running query in fabric notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-only-see-first-1000-records-while-running-query-in-fabric/m-p/3484659#M209</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While running any query on&amp;nbsp; a table or running a pyspark code , I am able to see first 1000 records and also not able to export more records in csv.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to export more than 1000 records in csv from fabric notebook ?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 05:02:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-only-see-first-1000-records-while-running-query-in-fabric/m-p/3484659#M209</guid>
      <dc:creator>priyanksingh</dc:creator>
      <dc:date>2023-10-19T05:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can only see first 1000 records while running query in fabric notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-only-see-first-1000-records-while-running-query-in-fabric/m-p/3486038#M210</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/610802"&gt;@priyanksingh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to Microsoft Fabric Community and thanks for posting your question here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I understand that you want to export more than 1000 records in csv from Fabric Notebook.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When you run a PySpark query in Fabric Notebook, the results are limited to the first 1000 records by default. However, you can export more than 1000 records in csv fromat. Please follow the below mentioned workaround in order to achieve your resolution.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have published 5000 records into my Lakehouse. Run the below mentioned code to save the file into your Lakehouse.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;df = spark.sql("SELECT * FROM ShekarLH.5000_Records")
df.write.csv("abfss://42965892-5819-4760-ad68-8983467a9df3@msit-onelake.dfs.fabric.microsoft.com/5023fdc9-fd65-4ef6-bb9f-bfdb82bd646f/Files/Destination/SH5000")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vcboorlamsft_0-1697739048360.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/983622i1F15FA798A4BC5AA/image-size/large?v=v2&amp;amp;px=999" role="button" title="vcboorlamsft_0-1697739048360.png" alt="vcboorlamsft_0-1697739048360.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After running the above code, the csv file gets created in the respective path.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vcboorlamsft_5-1697734230746.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/983587i414E865C37C1D9D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="vcboorlamsft_5-1697734230746.png" alt="vcboorlamsft_5-1697734230746.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To access this file in your local desktop, please download Onelake Explorer using this link &lt;A href="https://www.microsoft.com/en-us/download/details.aspx?id=105222" target="_blank" rel="noopener"&gt;Download Onelake&lt;/A&gt;. Make sure to sync with your respective workspace.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vcboorlamsft_6-1697734399425.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/983589iCBF226687DBD4A7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vcboorlamsft_6-1697734399425.png" alt="vcboorlamsft_6-1697734399425.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you will able to download the csv file which is having all the 5000 records.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vcboorlamsft_7-1697734415921.png" style="width: 999px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/983591iA45D883CF4C4BC7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="vcboorlamsft_7-1697734415921.png" alt="vcboorlamsft_7-1697734415921.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps, let us know in case of any further queries.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 18:11:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-only-see-first-1000-records-while-running-query-in-fabric/m-p/3486038#M210</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2023-10-19T18:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can only see first 1000 records while running query in fabric notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-only-see-first-1000-records-while-running-query-in-fabric/m-p/3490395#M211</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/610802"&gt;@priyanksingh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Following up to see if the above suggestion was helpful. And, if you have any further query do let us know.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 05:26:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-only-see-first-1000-records-while-running-query-in-fabric/m-p/3490395#M211</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2023-10-23T05:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can only see first 1000 records while running query in fabric notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-only-see-first-1000-records-while-running-query-in-fabric/m-p/3493903#M212</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the suggestion. Yes i had tried this method but i was looking for some setting where we can change the default value. This setting is present in Databricks&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 12:57:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-only-see-first-1000-records-while-running-query-in-fabric/m-p/3493903#M212</guid>
      <dc:creator>priyanksingh</dc:creator>
      <dc:date>2023-10-24T12:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Can only see first 1000 records while running query in fabric notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-only-see-first-1000-records-while-running-query-in-fabric/m-p/3494504#M213</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/610802"&gt;@priyanksingh&lt;/a&gt;&lt;BR /&gt;I am not sure if it is in place in Databricks , as per this thread i think they are still working on that , apoloziges if you are able to see that and may be they did not updated the thread .&amp;nbsp;&lt;BR /&gt;I do not think we can have that set in Fabric at this time , but then you can use the .head() and that should do the trick .&lt;BR /&gt;&lt;BR /&gt;&lt;CODE class=""&gt;df.head(&lt;SPAN class=""&gt;10)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Himanshu&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 17:36:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-only-see-first-1000-records-while-running-query-in-fabric/m-p/3494504#M213</guid>
      <dc:creator>HimanshuS-msft</dc:creator>
      <dc:date>2023-10-24T17:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can only see first 1000 records while running query in fabric notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-only-see-first-1000-records-while-running-query-in-fabric/m-p/3500661#M214</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/610802"&gt;@priyanksingh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet .&lt;BR /&gt;In case if you have any resolution please do share that same with the community as it can be helpful to others .&lt;BR /&gt;&lt;BR /&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2023 07:08:19 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Can-only-see-first-1000-records-while-running-query-in-fabric/m-p/3500661#M214</guid>
      <dc:creator>v-cboorla-msft</dc:creator>
      <dc:date>2023-10-27T07:08:19Z</dc:date>
    </item>
  </channel>
</rss>

