fix: custom SQL in the XAxis (#21847)

This commit is contained in:
Yongjie Zhao
2022-10-19 11:40:52 +08:00
committed by GitHub
parent b77335494a
commit 0a4ecca9f2
13 changed files with 50 additions and 23 deletions

View File

@@ -19,7 +19,7 @@
import {
buildQueryContext,
ensureIsArray,
getXAxis,
getXAxisColumn,
isXAxisSet,
QueryFormData,
} from '@superset-ui/core';
@@ -35,7 +35,9 @@ export default function buildQuery(formData: QueryFormData) {
{
...baseQueryObject,
columns: [
...(isXAxisSet(formData) ? ensureIsArray(getXAxis(formData)) : []),
...(isXAxisSet(formData)
? ensureIsArray(getXAxisColumn(formData))
: []),
],
...(isXAxisSet(formData) ? {} : { is_timeseries: true }),
post_processing: [