revert topic phyplan
This commit is contained in:
parent
459ec6ed71
commit
9364c8063c
|
@ -293,7 +293,7 @@ static int32_t mndCreateTopic(SMnode *pMnode, SNodeMsg *pReq, SCMCreateTopicReq
|
||||||
topicObj.dbUid = pDb->uid;
|
topicObj.dbUid = pDb->uid;
|
||||||
topicObj.version = 1;
|
topicObj.version = 1;
|
||||||
topicObj.sql = pCreate->sql;
|
topicObj.sql = pCreate->sql;
|
||||||
topicObj.physicalPlan = NULL;
|
topicObj.physicalPlan = "";
|
||||||
topicObj.logicalPlan = "";
|
topicObj.logicalPlan = "";
|
||||||
topicObj.sqlLen = strlen(pCreate->sql);
|
topicObj.sqlLen = strlen(pCreate->sql);
|
||||||
|
|
||||||
|
@ -302,7 +302,9 @@ static int32_t mndCreateTopic(SMnode *pMnode, SNodeMsg *pReq, SCMCreateTopicReq
|
||||||
mError("topic:%s, failed to get plan since %s", pCreate->name, terrstr());
|
mError("topic:%s, failed to get plan since %s", pCreate->name, terrstr());
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
topicObj.physicalPlan = pPlanStr;
|
if (NULL != pPlanStr) {
|
||||||
|
topicObj.physicalPlan = pPlanStr;
|
||||||
|
}
|
||||||
|
|
||||||
SNode *pAst = NULL;
|
SNode *pAst = NULL;
|
||||||
if (nodesStringToNode(pCreate->ast, &pAst) < 0) {
|
if (nodesStringToNode(pCreate->ast, &pAst) < 0) {
|
||||||
|
|
Loading…
Reference in New Issue