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