fix(query): fix diff function bool type crash

TD-16098
This commit is contained in:
Ganlin Zhao 2022-05-28 18:55:07 +08:00
parent b350d0025d
commit 94109a3173
1 changed files with 1 additions and 1 deletions

View File

@ -720,7 +720,7 @@ static int32_t translateDiff(SFunctionNode* pFunc, char* pErrBuf, int32_t len) {
}
uint8_t resType;
if (IS_SIGNED_NUMERIC_TYPE(colType)) {
if (IS_SIGNED_NUMERIC_TYPE(colType) || TSDB_DATA_TYPE_BOOL == colType) {
resType = TSDB_DATA_TYPE_BIGINT;
} else {
resType = TSDB_DATA_TYPE_DOUBLE;