提交 d0bb521a 编写于 作者: G Ganlin Zhao

[TD-11220]<feature>(query): time related functions

上级 1d8ada31
......@@ -1189,7 +1189,8 @@ int32_t exprValidateTimeNode(tExprNode *pExpr) {
return TSDB_CODE_TSC_OUT_OF_MEMORY;
}
child->pVal->nType = TSDB_DATA_TYPE_TIMESTAMP;
child->pVal->i64 = taosGetTimestampToday() * pExpr->_func.precision;
int64_t timeValSec = taosGetTimestampToday() * 1000;
child->pVal->i64 = convertTimePrecision(timeValSec, TSDB_TIME_PRECISION_MILLI, pExpr->_func.precision);
pExpr->resultType = TSDB_DATA_TYPE_TIMESTAMP;
pExpr->resultBytes = (int16_t)tDataTypes[pExpr->resultType].bytes;
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册