mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix: add template_processor so Jinja gets rendered before SQLGlot parse (#39207)
This commit is contained in:
@@ -3012,7 +3012,11 @@ class ExploreMixin: # pylint: disable=too-many-public-methods
|
||||
col_obj = dttm_col
|
||||
elif is_adhoc_column(flt_col):
|
||||
try:
|
||||
sqla_col = self.adhoc_column_to_sqla(flt_col, force_type_check=True)
|
||||
sqla_col = self.adhoc_column_to_sqla(
|
||||
flt_col,
|
||||
force_type_check=True,
|
||||
template_processor=template_processor,
|
||||
)
|
||||
applied_adhoc_filters_columns.append(flt_col)
|
||||
except ColumnNotFoundException:
|
||||
rejected_adhoc_filters_columns.append(flt_col)
|
||||
|
||||
Reference in New Issue
Block a user