fix(query): add null ptr check.
This commit is contained in:
parent
188c3a9881
commit
e5e21bf635
|
@ -989,7 +989,8 @@ SArray* extractColMatchInfo(SNodeList* pNodeList, SDataBlockDescNode* pOutputNod
|
||||||
|
|
||||||
if (pNode->output) {
|
if (pNode->output) {
|
||||||
(*numOfOutputCols) += 1;
|
(*numOfOutputCols) += 1;
|
||||||
} else {
|
} else if (info != NULL) {
|
||||||
|
// select distinct tbname from stb where tbname='abc';
|
||||||
info->output = false;
|
info->output = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue