mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
chore(superset-ui-chart-controls): refactor pivot and rename operator (#22963)
This commit is contained in:
@@ -67,8 +67,8 @@ export default function buildQuery(formData: QueryFormData) {
|
||||
fd,
|
||||
queryObject,
|
||||
)
|
||||
? timeComparePivotOperator(fd, { ...queryObject, columns: fd.groupby })
|
||||
: pivotOperator(fd, { ...queryObject, columns: fd.groupby });
|
||||
? timeComparePivotOperator(fd, queryObject)
|
||||
: pivotOperator(fd, queryObject);
|
||||
|
||||
const tmpQueryObject = {
|
||||
...queryObject,
|
||||
@@ -78,10 +78,7 @@ export default function buildQuery(formData: QueryFormData) {
|
||||
rollingWindowOperator(fd, queryObject),
|
||||
timeCompareOperator(fd, queryObject),
|
||||
resampleOperator(fd, queryObject),
|
||||
renameOperator(fd, {
|
||||
...queryObject,
|
||||
columns: fd.groupby,
|
||||
}),
|
||||
renameOperator(fd, queryObject),
|
||||
flattenOperator(fd, queryObject),
|
||||
],
|
||||
} as QueryObject;
|
||||
|
||||
Reference in New Issue
Block a user