From 1143adce33a84db60b3973fb499eb45410ac5ffd Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Mon, 30 Sep 2024 09:54:37 +0800 Subject: [PATCH] fix: add random case --- source/libs/executor/test/queryPlanTests.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/libs/executor/test/queryPlanTests.cpp b/source/libs/executor/test/queryPlanTests.cpp index 37d0a79761..dcd615b8c3 100755 --- a/source/libs/executor/test/queryPlanTests.cpp +++ b/source/libs/executor/test/queryPlanTests.cpp @@ -976,8 +976,17 @@ SNode* qptMakeSlotDescNode(const char* pName, const SNode* pNode, int16_t slotId assert(0 == nodesMakeNode(QUERY_NODE_SLOT_DESC, (SNode**)&pSlot)); QPT_RAND_BOOL_V ? (pSlot->name[0] = 0) : snprintf(pSlot->name, sizeof(pSlot->name), "%s", pName); +<<<<<<< Updated upstream pSlot->slotId = slotId; pSlot->dataType = ((SExprNode*)pNode)->resType; +======= + pSlot->slotId = qptCtx.param.correctExpected ? slotId : taosRand(); + if (qptCtx.param.correctExpected) { + pSlot->dataType = ((SExprNode*)pNode)->resType; + } else { + + } +>>>>>>> Stashed changes pSlot->reserve = reserve; pSlot->output = output; return (SNode*)pSlot;