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

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

上级 2f9decf6
......@@ -2243,7 +2243,7 @@ void vectorTimeFunc(int16_t functionId, tExprOperandInfo *pInputs, int32_t numIn
if (pInputs[j].type == TSDB_DATA_TYPE_BINARY || /* datetime format strings */
pInputs[j].type == TSDB_DATA_TYPE_NCHAR) {
taosParseTime((char *)varDataVal(inputData[j]), &timeVal[j], pInputs[j].bytes, timePrec, 0);
taosParseTime((char *)varDataVal(inputData[j]), &timeVal[j], pInputs[j].bytes, TSDB_TIME_PRECISION_NANO, 0);
} else if (pInputs[j].type == TSDB_DATA_TYPE_BIGINT ||
pInputs[j].type == TSDB_DATA_TYPE_TIMESTAMP) { /* unix timestamp or ts column*/
GET_TYPED_DATA(timeVal[j], int64_t, pInputs[j].type, inputData[j]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册