fix:[TS-5761] error for in operator

This commit is contained in:
wangmm0220 2024-12-17 10:26:19 +08:00
parent bd6170c03e
commit 2013a822f5
2 changed files with 4 additions and 2 deletions

View File

@ -4874,7 +4874,9 @@ EDealRes fltReviseRewriter(SNode **pNode, void *pContext) {
type = tmp;
}
}
exprNode->resType.type = type;
if (IS_NUMERIC_TYPE(type)){
exprNode->resType.type = type;
}
}
if ((0 != type && type != refNode->node.resType.type) || OP_TYPE_NOT_IN == node->opType) {
stat->scalarMode = true;

View File

@ -1069,7 +1069,7 @@ int32_t vectorGetConvertType(int32_t type1, int32_t type2) {
int32_t vectorConvertSingleCol(SScalarParam *input, SScalarParam *output, int32_t type, int32_t startIndex,
int32_t numOfRows) {
if (input->columnData == NULL && input->pHashFilterVar != NULL){
if (input->columnData == NULL && (input->pHashFilter != NULL || input->pHashFilterVar != NULL)){
return TSDB_CODE_SUCCESS;
}
output->numOfRows = input->numOfRows;