fix bugs avoiding two super table join crash

fix bugs avoiding two super table join crashed.
This commit is contained in:
haojun Liao 2020-01-09 14:11:26 +08:00 committed by GitHub
parent 82317294ba
commit 9e7f670376
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ int32_t mgmtDoJoin(SMetricMetaMsg* pMetricMetaMsg, tQueryResultset* pRes) {
bool allEmpty = false;
for (int32_t i = 0; i < pMetricMetaMsg->numOfMeters; ++i) {
if (pRes->num == 0) { // all results are empty if one of them is empty
if (pRes[i].num == 0) { // all results are empty if one of them is empty
allEmpty = true;
break;
}