diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/BoxPlot/buildQuery.ts b/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/BoxPlot/buildQuery.ts index b0706802d1d6..d35fe9bc436f 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/BoxPlot/buildQuery.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/src/BoxPlot/buildQuery.ts @@ -45,6 +45,7 @@ export default function buildQuery(formData: BoxPlotQueryFormData) { ...baseQueryObject, is_timeseries: distributionColumns.length === 0, groupby: (groupby || []).concat(distributionColumns), + columns: [], post_processing: [ { operation: 'boxplot', diff --git a/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/test/BoxPlot/buildQuery.test.ts b/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/test/BoxPlot/buildQuery.test.ts index 7a3b06817295..067419764e00 100644 --- a/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/test/BoxPlot/buildQuery.test.ts +++ b/superset-frontend/temporary_superset_ui/superset-ui/plugins/plugin-chart-echarts/test/BoxPlot/buildQuery.test.ts @@ -38,6 +38,7 @@ describe('BoxPlot buildQuery', () => { expect(query.is_timeseries).toEqual(true); expect(query.metrics).toEqual(['foo']); expect(query.groupby).toEqual(['bar']); + expect(query.columns).toEqual([]); }); it('should build non-timeseries query object when columns is defined', () => { @@ -46,5 +47,6 @@ describe('BoxPlot buildQuery', () => { expect(query.is_timeseries).toEqual(false); expect(query.metrics).toEqual(['foo']); expect(query.groupby).toEqual(['bar', 'qwerty']); + expect(query.columns).toEqual([]); }); });