diff options
Diffstat (limited to 'sqlglot/executor')
-rw-r--r-- | sqlglot/executor/python.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sqlglot/executor/python.py b/sqlglot/executor/python.py index e1e597d..3277e65 100644 --- a/sqlglot/executor/python.py +++ b/sqlglot/executor/python.py @@ -343,6 +343,9 @@ class PythonExecutor: else: sink.rows = left.rows + right.rows + if not math.isinf(step.limit): + sink.rows = sink.rows[0 : step.limit] + return self.context({step.name: sink}) |