cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Can I change from default showing first 1,000 to return all records when query?

Thanapat_S
Contributor

I have to query a data for showing in my dashboard.

But it truncated the results and showing only first 1,000 rows.

imageIn the dashboard view, there is no option to re-execute with maximum result limits.

I don't want to switch back to standard view and click to re-execute everytime.

image.pngSo, I would like to know if I can change default from showing only 1,000 records to return all records from query.

More information

Workspace: Data Science & Engineering

Language: Python (PySpark)

Databricks Runtime: 9.1 LTS (includes Apache Spark 3.1.2, Scala 2.12)

1 ACCEPTED SOLUTION

Accepted Solutions

@Thanapat Sontayasaraโ€‹ 1000 is still the default. Default of 10k rows will be made available by Jan.

View solution in original post

8 REPLIES 8

Hi! @Kaniz Fatmaโ€‹ Sorry for late reply.

Thank you for your answer.

But the problem is that my query is running in Databricks Data Science & Engineering.

I understand that your reference is based on Databricks SQL workspace.

image

Hi! @Kaniz Fatmaโ€‹.

Yes, definitely the same question as mine.

But, still, I don't find any guideline of how to change the default like mention in that thread.

Do you have any clue about "the changes need to occur at the shard level."?

I have no idea what is the shard level. Or you have any reference document for me to work on.

Srihasa_Akepati
Databricks Employee
Databricks Employee

@Thanapat Sontayasaraโ€‹ 10000 limit is available as an option in the notebook(which propagates to dashboard after its run in notebook) while 1000 rows still is the default. 10000 limit is experimental and it can be made as default depending on the number of use cases from customers which may take some time.

Hi! @Srihasa Reddy Akepatiโ€‹ Sorry for late reply.

Interesting! Can you share with us about how to change or set the 10,000 as default when running command like display(df) and return 10,000.

With screenshot or document guideline shared would be really appreciated!

@Thanapat Sontayasaraโ€‹ Default is still 1000. Let me check internally if there is a way to change the default.

@Thanapat Sontayasaraโ€‹ 1000 is still the default. Default of 10k rows will be made available by Jan.

Hi @Srihasa Reddy Akepatiโ€‹ 

That's a useful information and also a good news.

I'm looking forward to that feature release.

Thank you so much for your support. ๐Ÿ˜„

Hi! @Kaniz Fatmaโ€‹ Sorry for late reply.

I am still don't find any solution to change the default query limit when using display(df).

If I got the solution, I will share with the community ASAP.

Thank you for your support ๐Ÿ™‚

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group