This is an automated email from the ASF dual-hosted git repository.

vavila pushed a commit to branch fix/download-full-csv
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 9c76c6af293edf3ad8c899a13038f359795924b6
Author: Vitor Avila <[email protected]>
AuthorDate: Tue Apr 22 19:26:03 2025 -0300

    fix(export): Full CSV/Excel downloads respecting SQL_MAX_ROW config
---
 .../src/dashboard/components/gridComponents/Chart.jsx              | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx 
b/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx
index b7c7785d3e..299f329b67 100644
--- a/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx
+++ b/superset-frontend/src/dashboard/components/gridComponents/Chart.jsx
@@ -150,6 +150,9 @@ const Chart = props => {
   const emitCrossFilters = useSelector(
     state => !!state.dashboardInfo.crossFiltersEnabled,
   );
+  const maxRows = useSelector(
+    state => state.dashboardInfo.common.conf.SQL_MAX_ROW,
+  );
   const datasource = useSelector(
     state =>
       (chart &&
@@ -360,9 +363,7 @@ const Chart = props => {
         is_cached: props.isCached,
       });
       exportChart({
-        formData: isFullCSV
-          ? { ...formData, row_limit: props.maxRows }
-          : formData,
+        formData: isFullCSV ? { ...formData, row_limit: maxRows } : formData,
         resultType: isPivot ? 'post_processed' : 'full',
         resultFormat: format,
         force: true,

Reply via email to