提交 3b2d5f74 编写于 作者: L lichuang

[TD-4034]check if STColumn is NULL,then ignore cache NULL column

上级 9d3d129f
......@@ -993,6 +993,10 @@ static void updateTableLatestColumn(STsdbRepo *pRepo, STable *pTable, SDataRow r
}
STColumn *pTCol = schemaColAt(pSchema, j);
if (pTCol == NULL) {
// since schema maybe changed, check if STColumn NULL then ignore
continue;
}
SDataCol *pDataCol = &(pLatestCols[j]);
void* value = tdGetRowDataOfCol(row, (int8_t)pTCol->type, TD_DATA_ROW_HEAD_SIZE + pSchema->columns[j].offset);
if (isNullN(value, pTCol->type)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册