fix: add template_processor so Jinja gets rendered before SQLGlot parse (#39207)

This commit is contained in:
Luiz Otavio
2026-04-08 16:58:15 -03:00
committed by GitHub
parent 4c2dd63464
commit 2e80f2a473

View File

@@ -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)