diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-29 13:02:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-29 13:02:29 +0000 |
commit | 9b39dac84e82bf473216939e50b8836170f01d23 (patch) | |
tree | 9b405bc86ef7e2ea28cddc6b787ed70355cf7fce /sqlglot/executor/python.py | |
parent | Releasing debian version 16.4.2-1. (diff) | |
download | sqlglot-9b39dac84e82bf473216939e50b8836170f01d23.tar.xz sqlglot-9b39dac84e82bf473216939e50b8836170f01d23.zip |
Merging upstream version 16.7.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'sqlglot/executor/python.py')
-rw-r--r-- | sqlglot/executor/python.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sqlglot/executor/python.py b/sqlglot/executor/python.py index 635ec2c..a927181 100644 --- a/sqlglot/executor/python.py +++ b/sqlglot/executor/python.py @@ -276,11 +276,9 @@ class PythonExecutor: end = 1 length = len(context.table) table = self.table(list(step.group) + step.aggregations) - condition = self.generate(step.condition) def add_row(): - if not condition or context.eval(condition): - table.append(group + context.eval_tuple(aggregations)) + table.append(group + context.eval_tuple(aggregations)) if length: for i in range(length): @@ -304,7 +302,7 @@ class PythonExecutor: context = self.context({step.name: table, **{name: table for name in context.tables}}) - if step.projections: + if step.projections or step.condition: return self.scan(step, context) return context |