diff --git a/source/libs/index/src/indexFilter.c b/source/libs/index/src/indexFilter.c index 2a2865a955..72828e1daa 100644 --- a/source/libs/index/src/indexFilter.c +++ b/source/libs/index/src/indexFilter.c @@ -231,8 +231,10 @@ static int32_t sifInitParam(SNode *node, SIFParam *param, SIFCtx *ctx) { SIF_ERR_RET(sifGetValueFromNode(node, ¶m->condValue)); param->colId = -1; param->colValType = (uint8_t)(vn->node.resType.type); - if (strlen(vn->literal) <= sizeof(param->colName)) { + if (vn->literal != NULL && strlen(vn->literal) <= sizeof(param->colName)) { memcpy(param->colName, vn->literal, strlen(vn->literal)); + } else { + param->status = SFLT_NOT_INDEX; } break; } diff --git a/tests/system-test/0-others/compatibility.py b/tests/system-test/0-others/compatibility.py index 377cdbd7e6..9d4d14dcd0 100644 --- a/tests/system-test/0-others/compatibility.py +++ b/tests/system-test/0-others/compatibility.py @@ -84,6 +84,7 @@ class TDTestCase: stb = f"{dbname}.meters" self.installTaosd(bPath,cPath) os.system("echo 'debugFlag 143' > /etc/taos/taos.cfg ") + os.system("echo ' supportVnodes 256' > /etc/taos/taos.cfg ") tableNumbers=100 recordNumbers1=100 recordNumbers2=1000