提交 8ff9e5ae 编写于 作者: G Ganlin Zhao

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

上级 11faf9d4
......@@ -1702,8 +1702,10 @@ void vectorTimeFunc(int16_t functionId, tExprOperandInfo *pInputs, int32_t numIn
switch (functionId) {
case TSDB_FUNC_SCALAR_NOW:
case TSDB_FUNC_SCALAR_TODAY: {
assert(numInputs == 0);
double result = 345;
assert(numInputs == 1);
int64_t result;
GET_TYPED_DATA(result, int64_t, pInputs[0].type, inputData[0]);
SET_TYPED_DATA(outputData, pOutput->type, result);
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册