From 33a0fd551984fa5f0c48d0798d08a356f8784d9e Mon Sep 17 00:00:00 2001 From: dapan1121 Date: Thu, 24 Oct 2024 18:34:53 +0800 Subject: [PATCH] fix: modify subplan validation issue --- source/libs/scheduler/src/schUtil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/scheduler/src/schUtil.c b/source/libs/scheduler/src/schUtil.c index 4840108638..59951ab618 100644 --- a/source/libs/scheduler/src/schUtil.c +++ b/source/libs/scheduler/src/schUtil.c @@ -393,8 +393,8 @@ int32_t schValidateSubplan(SSchJob *pJob, SSubplan* pSubplan, int32_t level, int } } - if (NULL == pSubplan->pNode) { - SCH_JOB_ELOG("empty plan root node, level:%d, subplan idx:%d", level, idx); + if (NULL == pSubplan->pNode && pSubplan->subplanType != SUBPLAN_TYPE_MODIFY) { + SCH_JOB_ELOG("empty plan root node, level:%d, subplan idx:%d, subplanType:%d", level, idx, pSubplan->subplanType); SCH_ERR_RET(TSDB_CODE_QRY_INVALID_INPUT); }