From ee524b3471351dacd287c919fdc805b1a3db34c4 Mon Sep 17 00:00:00 2001 From: Elizabeth Thompson Date: Mon, 6 Jul 2026 16:50:06 -0700 Subject: [PATCH] fix(dashboard): let CSV exports use query cache instead of always force-querying (#41469) Co-authored-by: Claude Sonnet 4.6 --- .../plugins/plugin-chart-table/src/buildQuery.ts | 5 ++++- .../src/dashboard/components/gridComponents/Chart/Chart.tsx | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/superset-frontend/plugins/plugin-chart-table/src/buildQuery.ts b/superset-frontend/plugins/plugin-chart-table/src/buildQuery.ts index d74c097e80d..9e4bd0a78ad 100644 --- a/superset-frontend/plugins/plugin-chart-table/src/buildQuery.ts +++ b/superset-frontend/plugins/plugin-chart-table/src/buildQuery.ts @@ -227,7 +227,10 @@ export const buildQuery: BuildQuery = ( formData?.result_type === 'results'); if (isDownloadQuery) { - moreProps.row_limit = Number(formDataCopy.row_limit) || 0; + moreProps.row_limit = + formDataCopy.row_limit != null + ? Number(formDataCopy.row_limit) + : undefined; moreProps.row_offset = 0; } diff --git a/superset-frontend/src/dashboard/components/gridComponents/Chart/Chart.tsx b/superset-frontend/src/dashboard/components/gridComponents/Chart/Chart.tsx index c49aff42b1b..6727efb263e 100644 --- a/superset-frontend/src/dashboard/components/gridComponents/Chart/Chart.tsx +++ b/superset-frontend/src/dashboard/components/gridComponents/Chart/Chart.tsx @@ -581,7 +581,6 @@ const Chart = (props: ChartProps) => { exportFormData as unknown as import('@superset-ui/core').QueryFormData, resultType, resultFormat: format, - force: true, ownState: exportOwnState, onStartStreamingExport: shouldUseStreaming ? (exportParams: JsonObject) => {