From f2a693331f221c6909f431636623a2d471b55792 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Tue, 8 Feb 2022 14:29:41 +0800 Subject: [PATCH] [TD-11220](query): time related functions --- src/common/src/texpr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/src/texpr.c b/src/common/src/texpr.c index 0f3cc766eb..52271df674 100644 --- a/src/common/src/texpr.c +++ b/src/common/src/texpr.c @@ -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]); -- GitLab