Skip to content

Commit

Permalink
fix meta bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon9997 committed Jan 20, 2025
1 parent ae9c47d commit 1e5fec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/libs/catalog/src/ctgCache.c
Original file line number Diff line number Diff line change
Expand Up @@ -3606,7 +3606,7 @@ int32_t ctgGetTbMetasFromCache(SCatalog *pCtg, SRequestConnInfo *pConn, SCtgTbMe
CTG_ERR_RET(terrno);
}

if (tbMeta->colRef != NULL) {
if (hasRefCol(tbMeta->tableType) && tbMeta->colRef != NULL) {
colRefSize = tbMeta->numOfColRefs * sizeof(SColRef);
}

Expand Down

0 comments on commit 1e5fec7

Please sign in to comment.