diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-12-19 11:01:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-12-19 11:01:55 +0000 |
commit | f1c2dbe3b17a0d5edffbb65b85b642d0bb2756c5 (patch) | |
tree | 5dce0fe2a11381761496eb973c20750f44db56d5 /sqlglot/executor | |
parent | Releasing debian version 20.1.0-1. (diff) | |
download | sqlglot-f1c2dbe3b17a0d5edffbb65b85b642d0bb2756c5.tar.xz sqlglot-f1c2dbe3b17a0d5edffbb65b85b642d0bb2756c5.zip |
Merging upstream version 20.3.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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}) |