“de50a2d704e5dacd42195e31011e7a8f0b729d25”上不存在“include/util/tbuffer.h”
提交 7089efd0 编写于 作者: G Ganlin Zhao

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

上级 63fb69ec
...@@ -1926,7 +1926,9 @@ void vectorTimeFunc(int16_t functionId, tExprOperandInfo *pInputs, int32_t numIn ...@@ -1926,7 +1926,9 @@ void vectorTimeFunc(int16_t functionId, tExprOperandInfo *pInputs, int32_t numIn
assert(pInputs[1].type == TSDB_DATA_TYPE_BIGINT); assert(pInputs[1].type == TSDB_DATA_TYPE_BIGINT);
int64_t timeVal = 0; int64_t timeVal = 0;
taosParseTime((char *)varDataVal(inputData[0]), &timeVal, pInputs[0].bytes, TSDB_TIME_PRECISION_NANO, 0); int64_t timePrec;
GET_TYPED_DATA(timePrec, int64_t, pInputs[1].type, inputData[1]);
taosParseTime((char *)varDataVal(inputData[0]), &timeVal, pInputs[0].bytes, timePrec, 0);
SET_TYPED_DATA(outputData, pOutput->type, timeVal); SET_TYPED_DATA(outputData, pOutput->type, timeVal);
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册