From bfeca698e0f4cf5129e2955052425c605160d4da Mon Sep 17 00:00:00 2001 From: chuanzhisongshu <49055103+982945902@users.noreply.github.com> Date: Mon, 1 Dec 2025 15:35:20 +0800 Subject: [PATCH] Add filter flag handling in KVScanR escape filter if not contain filter contition escape kv lookup --- aios/sql/ops/scan/KVScanR.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aios/sql/ops/scan/KVScanR.cpp b/aios/sql/ops/scan/KVScanR.cpp index bd13d96126..fcf363a56f 100644 --- a/aios/sql/ops/scan/KVScanR.cpp +++ b/aios/sql/ops/scan/KVScanR.cpp @@ -247,6 +247,10 @@ bool KVScanR::parseQuery() { } return !_requirePk; } + + bool needFilter = visitor.needFilter(); + _calcTableR->setFilterFlag(needFilter); + _rawPks = visitor.stealRawKeyVec(); SQL_LOG(TRACE3, "before filter rawPks[%s]", autil::StringUtil::toString(_rawPks).c_str()); ScanUtil::filterPksByParam(_scanR, *_scanInitParamR, _indexInfo, _rawPks);