mirror of https://github.com/apache/superset.git
add having_druid back into the schema (#20879)
This commit is contained in:
parent
d327437462
commit
cd578d2865
|
@ -851,6 +851,12 @@ class ChartDataExtrasSchema(Schema):
|
||||||
description="HAVING clause to be added to aggregate queries using "
|
description="HAVING clause to be added to aggregate queries using "
|
||||||
"AND operator.",
|
"AND operator.",
|
||||||
)
|
)
|
||||||
|
having_druid = fields.List(
|
||||||
|
fields.Nested(ChartDataFilterSchema),
|
||||||
|
description="HAVING filters to be added to legacy Druid datasource queries. "
|
||||||
|
"This field is deprecated",
|
||||||
|
deprecated=True,
|
||||||
|
)
|
||||||
time_grain_sqla = fields.String(
|
time_grain_sqla = fields.String(
|
||||||
description="To what level of granularity should the temporal column be "
|
description="To what level of granularity should the temporal column be "
|
||||||
"aggregated. Supports "
|
"aggregated. Supports "
|
||||||
|
|
|
@ -22,7 +22,7 @@ from superset.common.chart_data import ChartDataResultType
|
||||||
from superset.utils.core import AnnotationType, DTTM_ALIAS
|
from superset.utils.core import AnnotationType, DTTM_ALIAS
|
||||||
|
|
||||||
query_birth_names = {
|
query_birth_names = {
|
||||||
"extras": {"where": "", "time_grain_sqla": "P1D"},
|
"extras": {"where": "", "time_grain_sqla": "P1D", "having_druid": []},
|
||||||
"columns": ["name"],
|
"columns": ["name"],
|
||||||
"metrics": [{"label": "sum__num"}],
|
"metrics": [{"label": "sum__num"}],
|
||||||
"orderby": [("sum__num", False)],
|
"orderby": [("sum__num", False)],
|
||||||
|
|
Loading…
Reference in New Issue