diff --git a/source/libs/index/src/indexFilter.c b/source/libs/index/src/indexFilter.c index cb00bc6c6a..952e212ec8 100644 --- a/source/libs/index/src/indexFilter.c +++ b/source/libs/index/src/indexFilter.c @@ -272,6 +272,10 @@ static int32_t sifInitOperParams(SIFParam **params, SOperatorNode *node, SIFCtx SIF_ERR_JRET(sifInitParam(node->pLeft, ¶mList[0], ctx)); if (nParam > 1) { SIF_ERR_JRET(sifInitParam(node->pRight, ¶mList[1], ctx)); + if (paramList[1].colValType == TSDB_DATA_TYPE_JSON && + ((SOperatorNode *)(node))->opType == OP_TYPE_JSON_CONTAINS) { + return TSDB_CODE_QRY_OUT_OF_MEMORY; + } } *params = paramList; return TSDB_CODE_SUCCESS;