fix filter err
This commit is contained in:
parent
5c9450856e
commit
3b89aa2085
|
@ -477,6 +477,10 @@ static FORCE_INLINE FilterFunc sifGetFilterFunc(EIndexQueryType type, bool *reve
|
|||
|
||||
static void sifSetFltParam(SIFParam *left, SIFParam *right, SDataTypeBuf *typedata, SMetaFltParam *param) {
|
||||
int8_t ltype = left->colValType, rtype = right->colValType;
|
||||
if (!IS_VAR_DATA_TYPE(ltype) && IS_VAR_DATA_TYPE(rtype)) {
|
||||
} else if (IS_VAR_DATA_TYPE(ltype) && !IS_VAR_DATA_TYPE(rtype)) {
|
||||
return;
|
||||
} else if (!IS_VAR_DATA_TYPE(ltype) && !IS_VAR_DATA_TYPE(rtype)) {
|
||||
if (ltype == TSDB_DATA_TYPE_FLOAT) {
|
||||
float f = 0;
|
||||
SIF_DATA_CONVERT(rtype, right->condValue, f);
|
||||
|
@ -529,6 +533,7 @@ static void sifSetFltParam(SIFParam *left, SIFParam *right, SDataTypeBuf *typeda
|
|||
param->val = &typedata->u8;
|
||||
}
|
||||
}
|
||||
}
|
||||
static int32_t sifDoIndex(SIFParam *left, SIFParam *right, int8_t operType, SIFParam *output) {
|
||||
int ret = 0;
|
||||
SIndexMetaArg *arg = &output->arg;
|
||||
|
|
Loading…
Reference in New Issue