From dc4998c40d4d0f26c506c3e2b4b89ede4a0320ec Mon Sep 17 00:00:00 2001 From: Zhenchi Date: Wed, 1 Feb 2023 14:39:42 +0800 Subject: [PATCH] planner: fix dropping non-ScalarFunction when extractCol for memtable Signed-off-by: Zhenchi --- planner/core/memtable_predicate_extractor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/planner/core/memtable_predicate_extractor.go b/planner/core/memtable_predicate_extractor.go index b4fa83d335a36..07ad325f92163 100644 --- a/planner/core/memtable_predicate_extractor.go +++ b/planner/core/memtable_predicate_extractor.go @@ -210,6 +210,7 @@ func (helper extractHelper) extractCol( for _, expr := range predicates { fn, ok := expr.(*expression.ScalarFunction) if !ok { + remained = append(remained, expr) continue } var colName string