fix(query): retry when column dropped in latest schema

This commit is contained in:
kailixu 2024-08-13 18:55:48 +08:00
parent 8fa1684a38
commit 413a57f4cb
2 changed files with 6 additions and 2 deletions

View File

@ -463,7 +463,9 @@ int32_t tsdbDataFileReadBlockDataByColumn(SDataFileReader *reader, const SBrinRe
if (cid < blockCol.cid) {
const STColumn *tcol = tTSchemaSearchColumn(pTSchema, cid);
ASSERT(tcol);
if (tcol == NULL) {
TAOS_CHECK_GOTO(TSDB_CODE_TDB_INVALID_TABLE_SCHEMA_VER, &lino, _exit);
}
SBlockCol none = {
.cid = cid,
.type = tcol->type,

View File

@ -309,7 +309,9 @@ int32_t tsdbSttFileReadBlockDataByColumn(SSttFileReader *reader, const SSttBlk *
if (cid < blockCol.cid) {
const STColumn *tcol = tTSchemaSearchColumn(pTSchema, cid);
ASSERT(tcol);
if (tcol == NULL) {
TAOS_CHECK_GOTO(TSDB_CODE_TDB_INVALID_TABLE_SCHEMA_VER, &lino, _exit);
}
SBlockCol none = {
.cid = cid,
.type = tcol->type,