fix(query): add null ptr check.

This commit is contained in:
Haojun Liao 2022-09-19 14:08:30 +08:00
parent 188c3a9881
commit e5e21bf635
1 changed files with 2 additions and 1 deletions

View File

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