mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix: boolean filters in Explore (#32701)
(cherry picked from commit 41bf215367)
This commit is contained in:
committed by
Michael S. Molina
parent
30e3e2e437
commit
9b8194fd8a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user