feat: Add Aggregation Method for Big Number with Trendline (#32767)

This commit is contained in:
Levis Mbote
2025-03-29 06:34:23 +03:00
committed by GitHub
parent c2afae51cb
commit f2c0686346
12 changed files with 473 additions and 26 deletions

View File

@@ -24,6 +24,7 @@ import {
QueryFormData,
} from '@superset-ui/core';
import {
aggregationOperator,
flattenOperator,
pivotOperator,
resampleOperator,
@@ -47,5 +48,19 @@ export default function buildQuery(formData: QueryFormData) {
flattenOperator(formData, baseQueryObject),
],
},
{
...baseQueryObject,
columns: [
...(isXAxisSet(formData)
? ensureIsArray(getXAxisColumn(formData))
: []),
],
...(isXAxisSet(formData) ? {} : { is_timeseries: true }),
post_processing: [
pivotOperator(formData, baseQueryObject),
aggregationOperator(formData, baseQueryObject),
],
},
]);
}