From 2699a0144462a616fe039fa5aa139a282757c373 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Sun, 23 Apr 2023 08:13:27 +0000 Subject: [PATCH] fix filter err --- source/libs/index/src/indexFilter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/libs/index/src/indexFilter.c b/source/libs/index/src/indexFilter.c index 7b49153fab..02ed0d2d05 100644 --- a/source/libs/index/src/indexFilter.c +++ b/source/libs/index/src/indexFilter.c @@ -475,6 +475,7 @@ static FORCE_INLINE FilterFunc sifGetFilterFunc(EIndexQueryType type, bool *reve return NULL; } int32_t sifStr2Num(char *buf, int32_t len, int8_t type, void *val) { + // signed/unsigned/float if (IS_SIGNED_NUMERIC_TYPE(type)) { int64_t v = 0; if (0 != toInteger(buf, len, 10, &v)) { @@ -509,6 +510,8 @@ int32_t sifStr2Num(char *buf, int32_t len, int8_t type, void *val) { } else if (type == TSDB_DATA_TYPE_USMALLINT) { *(uint16_t *)val = v; } + } else { + return -1; } return 0; } -- GitLab