fix(query): fix timeunit not processed in time functions when calculate

constant values.
This commit is contained in:
Ganlin Zhao 2022-05-07 15:51:02 +08:00
parent 48f708dfe6
commit 5763b24843
1 changed files with 1 additions and 0 deletions

View File

@ -481,6 +481,7 @@ static EDealRes translateValue(STranslateContext* pCxt, SValueNode* pVal) {
TSDB_CODE_SUCCESS) {
return generateDealNodeErrMsg(pCxt, TSDB_CODE_PAR_WRONG_VALUE_TYPE, pVal->literal);
}
*(int64_t*)&pVal->typeData = pVal->datum.i;
} else {
switch (pVal->node.resType.type) {
case TSDB_DATA_TYPE_NULL: