From e432aff069267281fb7f67b85983ba00856de178 Mon Sep 17 00:00:00 2001 From: "yuzhong.chen" Date: Thu, 26 Sep 2024 09:43:41 +0800 Subject: [PATCH] fix: limit should >= 0 --- include/exec/exec_node.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/exec/exec_node.h b/include/exec/exec_node.h index 364af88d..606b487a 100644 --- a/include/exec/exec_node.h +++ b/include/exec/exec_node.h @@ -233,6 +233,9 @@ class ExecNode { } void set_limit(int64_t limit) { _limit = limit; + if (_limit < 0) { + _limit = -1; + } } virtual void reset_limit(int64_t limit) { _limit = limit;