diff --git a/src/tsdb/src/tsdbRead.c b/src/tsdb/src/tsdbRead.c index 5bcddff18ff03c2e6820a872c021ccc532483ec8..11a8048864bc3e04acb3283b7ac6a3f0dc3fe21e 100644 --- a/src/tsdb/src/tsdbRead.c +++ b/src/tsdb/src/tsdbRead.c @@ -2693,7 +2693,7 @@ static int32_t getAllTableList(STable* pSuperTable, SArray* list) { pRecord = taosHashIterate(pSuperTable->jsonKeyMap, pRecord); } for (int i = 0; i < taosArrayGetSize(tablist); ++i) { - JsonMapValue* p = taosArrayGet(pRecord, i); + JsonMapValue* p = taosArrayGet(tablist, i); STableKeyInfo info = {.pTable = p->table, .lastKey = TSKEY_INITIAL_VAL}; taosArrayPush(list, &info); }