engine: ignore empty filters (#40482)
This commit is contained in:
parent
77447ed8dd
commit
89f6de1474
|
@ -161,6 +161,8 @@ class EngineDimension(object):
|
|||
continue
|
||||
# assert dimension.filter
|
||||
condition, values = dimension.build_filter(values)
|
||||
if not condition:
|
||||
continue
|
||||
with self.engine.get_cursor() as cursor: # Ugly...
|
||||
condition = cursor.mogrify(condition, values)
|
||||
if dimension.filter_needs_join and dimension.join:
|
||||
|
@ -376,6 +378,8 @@ class EngineCube(object):
|
|||
dimension = self.dimensions[dimension_name]
|
||||
# assert dimension.filter
|
||||
condition, values = dimension.build_filter(values)
|
||||
if not condition:
|
||||
continue
|
||||
condition = cursor.mogrify(condition, values)
|
||||
if dimension.filter_needs_join and dimension.join:
|
||||
joins.update(dimension.join)
|
||||
|
|
Loading…
Reference in New Issue