-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The row limit set for the chart was reached. #29409
Comments
To resolve the error message "The row limit set for the chart was reached. The chart may show partial data" when creating a chart from SQL Lab in Apache Superset, you need to increase the Here is an example of how you can adjust these limits: const ResultSet = ({
cache = false,
csv = true,
database = {},
displayLimit = 1000, // Increase this value
height,
queryId,
search = true,
showSql = false,
showSqlInline = false,
visualize = true,
defaultQueryLimit = 1000, // Increase this value
}: ResultSetProps) => {
// ... rest of the code
}; By increasing the |
How can I adjust this limit? Which file path should I use? |
To adjust the row limit in Apache Superset, you need to modify the configuration settings in the
# Set the maximum number of rows to display in the chart
DISPLAY_MAX_ROW = 10000 # Adjust this value as needed
# Set the default query limit
DEFAULT_SQLLAB_LIMIT = 10000 # Adjust this value as needed
Here is a snippet of the export interface ResultSetProps {
cache?: boolean;
csv?: boolean;
database?: Record<string, any>;
displayLimit: number;
height: number;
queryId: string;
search?: boolean;
showSql?: boolean;
showSqlInline?: boolean;
visualize?: boolean;
defaultQueryLimit: number;
} Make sure that the
By following these steps, you should be able to adjust the row limit and resolve the error message in Apache Superset version 4.0.1 [1][2]. |
It doesn't affect the chart; it impacts SQLLab directly. |
To adjust the row limit specifically for SQLLab in Apache Superset version 4.0.1, you need to modify the
# Set the maximum number of rows to display in SQLLab
DISPLAY_MAX_ROW = 10000 # Adjust this value as needed
By setting the |
Not solved, still got chart error |
To resolve the "Limit reached" error in Apache Superset version 4.0.1 when creating a chart from SQLLab, ensure that the following configurations are set correctly in your
DISPLAY_MAX_ROW = 10000 # Adjust this value as needed
SQL_MAX_ROW = 100000 # Adjust this value as needed
DEFAULT_SQLLAB_LIMIT = 1000 # Adjust this value as needed After updating these configurations, restart your Superset server to apply the new settings. This should help manage the row limits effectively and resolve the "Limit reached" error [1][2][3]. |
Any suggestions? This is also related to the discussion in option #29411. |
To resolve the "Limit reached" error in Apache Superset version 4.0.1, ensure that the following configurations are set correctly in your
DISPLAY_MAX_ROW = 10000 # Adjust this value as needed
SQL_MAX_ROW = 100000 # Adjust this value as needed
DEFAULT_SQLLAB_LIMIT = 1000 # Adjust this value as needed Additionally, verify that these configurations are being applied correctly in the backend and frontend code:
After making these changes, restart your Superset server to apply the new settings. This should help manage the row limits effectively and resolve the "Limit reached" error. Additionally, you might find these similar issues and discussions helpful:
These steps and resources should help you address the row limit issue in SQLLab. |
Yes, I know that, but the limitation is within the chart creation itself. I have already open limit in SQL Lab to 100k, but when creating a chart from result, I encountered the following message indicating that the 1k limit has been reached:
|
Can you give us a reproducible test case using one of the example datasets? That'll help me (or anyone) more able to validate that it's happening this way on our instance(s) and see if we can find a solution/workaround. |
1- Run any query in SQLLAB fetch 10K rows. Additionally, I am using this method to download the result as an XLSX file from the chart. Therefore, I request a discussion #29411 to add a "Download to XLSX" feature, similar to the "Download to CSV" button. |
Wow! it worked @mistwan thaanks. |
@rusackas I think this should be reviewed as it might help mitigate the issue in the future. |
Bug description
I got an error message chart limit when creating a chart from sqllab:
The row limit set for the chart was reached. The chart may show partial data.
How to reproduce the bug
Create a chart from sqllab.
Screenshots/recordings
Superset version
4.0.1
Python version
3.11
Node version
I don't know
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: