fix: modify subplan validation issue

This commit is contained in:
dapan1121 2024-10-24 18:34:53 +08:00
parent 8cd994645b
commit 33a0fd5519
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}