fix case issues
This commit is contained in:
parent
b864da2a9c
commit
8ce76f7419
|
@ -194,6 +194,11 @@ int32_t qExplainGenerateResChildren(SPhysiNode *pNode, SExplainGroup *group, SNo
|
||||||
pPhysiChildren = fillPhysiNode->node.pChildren;
|
pPhysiChildren = fillPhysiNode->node.pChildren;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case QUERY_NODE_PHYSICAL_PLAN_TABLE_MERGE_SCAN: {
|
||||||
|
STableMergeScanPhysiNode *mergePhysiNode = (STableMergeScanPhysiNode *)pNode;
|
||||||
|
pPhysiChildren = mergePhysiNode->scan.node.pChildren;
|
||||||
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
qError("not supported physical node type %d", pNode->type);
|
qError("not supported physical node type %d", pNode->type);
|
||||||
QRY_ERR_RET(TSDB_CODE_QRY_APP_ERROR);
|
QRY_ERR_RET(TSDB_CODE_QRY_APP_ERROR);
|
||||||
|
@ -398,6 +403,7 @@ int32_t qExplainResNodeToRowsImpl(SExplainResNode *pResNode, SExplainCtx *ctx, i
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case QUERY_NODE_PHYSICAL_PLAN_TABLE_SEQ_SCAN:
|
case QUERY_NODE_PHYSICAL_PLAN_TABLE_SEQ_SCAN:
|
||||||
|
case QUERY_NODE_PHYSICAL_PLAN_TABLE_MERGE_SCAN:
|
||||||
case QUERY_NODE_PHYSICAL_PLAN_TABLE_SCAN: {
|
case QUERY_NODE_PHYSICAL_PLAN_TABLE_SCAN: {
|
||||||
STableScanPhysiNode *pTblScanNode = (STableScanPhysiNode *)pNode;
|
STableScanPhysiNode *pTblScanNode = (STableScanPhysiNode *)pNode;
|
||||||
EXPLAIN_ROW_NEW(level, EXPLAIN_TBL_SCAN_FORMAT, pTblScanNode->scan.tableName.tname);
|
EXPLAIN_ROW_NEW(level, EXPLAIN_TBL_SCAN_FORMAT, pTblScanNode->scan.tableName.tname);
|
||||||
|
|
|
@ -731,6 +731,7 @@ static int32_t opkDoOptimized(SOptimizeContext* pCxt, SSortLogicNode* pSort, SNo
|
||||||
FOREACH(pNode, pSort->node.pParent->pChildren) {
|
FOREACH(pNode, pSort->node.pParent->pChildren) {
|
||||||
if (nodesEqualNode(pNode, (SNode*)pSort)) {
|
if (nodesEqualNode(pNode, (SNode*)pSort)) {
|
||||||
REPLACE_NODE(pDownNode);
|
REPLACE_NODE(pDownNode);
|
||||||
|
((SLogicNode*)pDownNode)->pParent = pSort->node.pParent;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,7 +116,7 @@ int32_t schInitJob(SSchedulerReq *pReq, SSchJob **pSchJob, SQueryResult* pRes, b
|
||||||
|
|
||||||
SCH_JOB_DLOG("job refId:0x%" PRIx64" created", pJob->refId);
|
SCH_JOB_DLOG("job refId:0x%" PRIx64" created", pJob->refId);
|
||||||
|
|
||||||
pJob->status = JOB_TASK_STATUS_NOT_START;
|
schUpdateJobStatus(pJob, JOB_TASK_STATUS_NOT_START);
|
||||||
|
|
||||||
*pSchJob = pJob;
|
*pSchJob = pJob;
|
||||||
|
|
||||||
|
@ -1623,12 +1623,15 @@ int32_t schExecStaticExplainJob(SSchedulerReq *pReq, int64_t *job, bool sync) {
|
||||||
}
|
}
|
||||||
|
|
||||||
pJob->sql = pReq->sql;
|
pJob->sql = pReq->sql;
|
||||||
|
pJob->reqKilled = pReq->reqKilled;
|
||||||
pJob->attr.queryJob = true;
|
pJob->attr.queryJob = true;
|
||||||
pJob->attr.explainMode = pReq->pDag->explainInfo.mode;
|
pJob->attr.explainMode = pReq->pDag->explainInfo.mode;
|
||||||
pJob->queryId = pReq->pDag->queryId;
|
pJob->queryId = pReq->pDag->queryId;
|
||||||
pJob->subPlans = pReq->pDag->pSubplans;
|
pJob->subPlans = pReq->pDag->pSubplans;
|
||||||
pJob->userRes.execFp = pReq->fp;
|
pJob->userRes.execFp = pReq->fp;
|
||||||
pJob->userRes.userParam = pReq->cbParam;
|
pJob->userRes.userParam = pReq->cbParam;
|
||||||
|
|
||||||
|
schUpdateJobStatus(pJob, JOB_TASK_STATUS_NOT_START);
|
||||||
|
|
||||||
code = schBeginOperation(pJob, SCH_OP_EXEC, sync);
|
code = schBeginOperation(pJob, SCH_OP_EXEC, sync);
|
||||||
if (code) {
|
if (code) {
|
||||||
|
|
|
@ -92,7 +92,7 @@ endi
|
||||||
if $data5_db != no_strict then # strict
|
if $data5_db != no_strict then # strict
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data6_db != 345600 then # duration
|
if $data6_db != 345600m then # duration
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data7_db != 1440000m,1440000m,1440000m then # keep
|
if $data7_db != 1440000m,1440000m,1440000m then # keep
|
||||||
|
|
|
@ -34,7 +34,7 @@ endi
|
||||||
if $data24 != 1 then
|
if $data24 != 1 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data26 != 2880 then
|
if $data26 != 2880m then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data27 != 14400m,14400m,14400m then
|
if $data27 != 14400m,14400m,14400m then
|
||||||
|
@ -78,7 +78,7 @@ endi
|
||||||
if $data24 != 1 then
|
if $data24 != 1 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data26 != 21600 then
|
if $data26 != 21600m then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ endi
|
||||||
if $data5_db != no_strict then # strict
|
if $data5_db != no_strict then # strict
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data6_db != 14400 then # duration
|
if $data6_db != 14400m then # duration
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data7_db != 5256000m,5256000m,5256000m then # keep
|
if $data7_db != 5256000m,5256000m,5256000m then # keep
|
||||||
|
|
Loading…
Reference in New Issue