提交 065c07c8 编写于 作者: G Ganlin Zhao

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

上级 7de53c17
...@@ -1900,7 +1900,7 @@ void vectorTimeFunc(int16_t functionId, tExprOperandInfo *pInputs, int32_t numIn ...@@ -1900,7 +1900,7 @@ void vectorTimeFunc(int16_t functionId, tExprOperandInfo *pInputs, int32_t numIn
assert(pInputs[0].type == TSDB_DATA_TYPE_BINARY || pInputs[0].type == TSDB_DATA_TYPE_NCHAR); assert(pInputs[0].type == TSDB_DATA_TYPE_BINARY || pInputs[0].type == TSDB_DATA_TYPE_NCHAR);
int64_t timeVal = 0; int64_t timeVal = 0;
taosParseTime(inputData[0], &timeVal, pInputs[0].bytes, TSDB_TIME_PRECISION_MILLI, 0); taosParseTime((char *)varDataVal(inputData[0]), &timeVal, pInputs[0].bytes, TSDB_TIME_PRECISION_NANO, 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.
先完成此消息的编辑!
想要评论请 注册