From 2ee0ebb8ca7c12ec119ffa70b25264e6eb110cd7 Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Wed, 6 Jul 2022 18:01:47 +0800 Subject: [PATCH] fix tag/json tag error --- source/libs/index/src/indexFilter.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/source/libs/index/src/indexFilter.c b/source/libs/index/src/indexFilter.c index 952e212ec8..cfafe5d506 100644 --- a/source/libs/index/src/indexFilter.c +++ b/source/libs/index/src/indexFilter.c @@ -272,10 +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; - } + // if (paramList[0].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; @@ -763,6 +763,8 @@ SIdxFltStatus idxGetFltStatus(SNode *pFilterNode) { return SFLT_NOT_INDEX; } - SIF_ERR_RET(sifGetFltHint((SNode *)pFilterNode, &st)); + if (sifGetFltHint((SNode *)pFilterNode, &st) != TSDB_CODE_SUCCESS) { + st = SFLT_NOT_INDEX; + } return st; }