diff --git a/src/common/src/tdataformat.c b/src/common/src/tdataformat.c index 1a444d6b9021db7eadb946515e8f43847502cf52..5cd3b79aa1d1d5b088473cd8cdc3f8a0ec801ec5 100644 --- a/src/common/src/tdataformat.c +++ b/src/common/src/tdataformat.c @@ -400,8 +400,8 @@ void tdAppendDataRowToDataCol(SDataRow row, STSchema *pSchema, SDataCols *pCols) STColumn *pRowCol = schemaColAt(pSchema, rcol); if (pRowCol->colId == pDataCol->colId) { - dataColAppendVal(pDataCol, tdGetRowDataOfCol(row, pRowCol->type, pRowCol->offset), pCols->numOfRows, - pCols->maxPoints); + void *value = tdGetRowDataOfCol(row, pRowCol->type, pRowCol->offset+TD_DATA_ROW_HEAD_SIZE); + dataColAppendVal(pDataCol, value, pCols->numOfRows, pCols->maxPoints); dcol++; rcol++; } else if (pRowCol->colId < pDataCol->colId) {