提交 43cce095 编写于 作者: H Haojun Liao

fix(query): set correct group table size.

上级 aab31f65
...@@ -1831,9 +1831,9 @@ int32_t tableListGetGroupList(const STableListInfo* pTableList, int32_t ordinalG ...@@ -1831,9 +1831,9 @@ int32_t tableListGetGroupList(const STableListInfo* pTableList, int32_t ordinalG
int32_t offset = pTableList->groupOffset[ordinalGroupIndex]; int32_t offset = pTableList->groupOffset[ordinalGroupIndex];
if (ordinalGroupIndex < total - 1) { if (ordinalGroupIndex < total - 1) {
*size = pTableList->groupOffset[offset + 1] - pTableList->groupOffset[offset]; *size = pTableList->groupOffset[ordinalGroupIndex + 1] - offset;
} else { } else {
*size = total - pTableList->groupOffset[offset] - 1; *size = total - offset;
} }
*pKeyInfo = taosArrayGet(pTableList->pTableList, offset); *pKeyInfo = taosArrayGet(pTableList->pTableList, offset);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册