diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index 858673212cb2a8f039bfd07636449ae147e73ae4..20987720cb1c88c9c7f2f8320b18e3843bffa7ec 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -1041,6 +1041,8 @@ static void doApplyFunctions(SQueryRuntimeEnv* pRuntimeEnv, SQLFunctionCtx* pCtx if (tsCol != NULL) { pCtx[k].ptsList = &tsCol[pos]; + } else { + pCtx[k].ptsList = NULL; } // not a whole block involved in query processing, statistics data can not be used