From e87af5f5e8b50e2fd7ddfd78cef04070eeec8ae1 Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Tue, 2 Nov 2021 14:27:39 +0800 Subject: [PATCH] deal tdGetKVRowValOfCol maybe return NULL --- src/tsdb/src/tsdbRead.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tsdb/src/tsdbRead.c b/src/tsdb/src/tsdbRead.c index 9818a72c9c..165cc80391 100644 --- a/src/tsdb/src/tsdbRead.c +++ b/src/tsdb/src/tsdbRead.c @@ -3653,6 +3653,9 @@ static bool tableFilterFp(const void* pNode, void* param) { return (val != NULL) && (!isNull(val, pInfo->sch.type)); } } else if (pInfo->optr == TSDB_RELATION_IN) { + if(val == NULL) { + return false; + } int type = pInfo->sch.type; if (type == TSDB_DATA_TYPE_BOOL || IS_SIGNED_NUMERIC_TYPE(type) || type == TSDB_DATA_TYPE_TIMESTAMP) { int64_t v; -- GitLab