From 3c9ee325bcfa33015405aaacd483f73d12020a40 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Sat, 11 Jun 2022 23:15:43 +0800 Subject: [PATCH] fix: invalid read/write --- source/libs/index/src/indexFilter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/index/src/indexFilter.c b/source/libs/index/src/indexFilter.c index 0ab84578b5..6197edd474 100644 --- a/source/libs/index/src/indexFilter.c +++ b/source/libs/index/src/indexFilter.c @@ -184,7 +184,7 @@ static int32_t sifInitParam(SNode *node, SIFParam *param, SIFCtx *ctx) { switch (nodeType(node)) { case QUERY_NODE_VALUE: { SValueNode *vn = (SValueNode *)node; - if (vn->typeData == TSDB_DATA_TYPE_NULL) { + if (vn->typeData == TSDB_DATA_TYPE_NULL && (vn->literal == NULL || strlen(vn->literal) == 0)) { param->status = SFLT_NOT_INDEX; return 0; }