parent
9a09f15de8
commit
eabfc7d31c
|
@ -1168,12 +1168,14 @@ int32_t timeDiffFunction(SScalarParam *pInput, int32_t inputNum, SScalarParam *p
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pInput[k].numOfRows != 1) {
|
||||||
if (IS_VAR_DATA_TYPE(type)) {
|
if (IS_VAR_DATA_TYPE(type)) {
|
||||||
input[k] += varDataTLen(input[k]);
|
input[k] += varDataTLen(input[k]);
|
||||||
} else {
|
} else {
|
||||||
input[k] += tDataTypes[type].bytes;
|
input[k] += tDataTypes[type].bytes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int64_t result = (timeVal[0] >= timeVal[1]) ? (timeVal[0] - timeVal[1]) :
|
int64_t result = (timeVal[0] >= timeVal[1]) ? (timeVal[0] - timeVal[1]) :
|
||||||
(timeVal[1] - timeVal[0]);
|
(timeVal[1] - timeVal[0]);
|
||||||
|
|
Loading…
Reference in New Issue