From 3ba2dddf6fb9d0e2fec7d37e55daca1208e62922 Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Wed, 17 Nov 2021 17:40:20 +0800 Subject: [PATCH] [TD-11085]interp in nested query result is wrong --- src/client/src/tscSQLParser.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index bf68543d3d..0fe0f73e9e 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -7574,6 +7574,10 @@ int32_t validateFunctionFromUpstream(SQueryInfo* pQueryInfo, char* msg) { if (!isSTable) { continue; } + + if (TSDB_QUERY_HAS_TYPE(pUp->type, TSDB_QUERY_TYPE_PROJECTION_QUERY)) { + return invalidOperationMsg(msg, msg5); + } for (int32_t n = 0; n < exprNum; ++n) { expr = taosArrayGetP(pUp->exprList, n); -- GitLab