From 507717d44bf7c4e1816555680c5dd5cf9b47e728 Mon Sep 17 00:00:00 2001 From: Ganlin Zhao Date: Tue, 22 Feb 2022 17:29:52 +0800 Subject: [PATCH] "[TD-11220](query): time related functions" --- src/common/src/texpr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/src/texpr.c b/src/common/src/texpr.c index 60ed368418..c4d99b2e62 100644 --- a/src/common/src/texpr.c +++ b/src/common/src/texpr.c @@ -2608,6 +2608,10 @@ void vectorTimeFunc(int16_t functionId, tExprOperandInfo *pInputs, int32_t numIn result = result / 1000000000 / 86400; break; } + case 604800000: { /* 1w */ + result = result / 1000000000 / 604800; + break; + } default: { break; } -- GitLab