fix: boolean filters in Explore (#32701)

(cherry picked from commit 41bf215367)
This commit is contained in:
Beto Dealmeida
2025-03-17 14:38:00 -04:00
committed by Michael S. Molina
parent 30e3e2e437
commit 9b8194fd8a
7 changed files with 81 additions and 69 deletions

View File

@@ -722,6 +722,8 @@ class ExploreMixin: # pylint: disable=too-many-public-methods
}
fetch_values_predicate = None
normalize_columns = False
@property
def type(self) -> str:
raise NotImplementedError()
@@ -1976,7 +1978,7 @@ class ExploreMixin: # pylint: disable=too-many-public-methods
self.make_orderby_compatible(select_exprs, orderby_exprs)
for col, (orig_col, ascending) in zip(orderby_exprs, orderby, strict=False): # noqa: B007
for col, (_orig_col, ascending) in zip(orderby_exprs, orderby, strict=False): # noqa: B007
if not db_engine_spec.allows_alias_in_orderby and isinstance(col, Label):
# if engine does not allow using SELECT alias in ORDER BY
# revert to the underlying column