提交 4541b69b 编写于 作者: C Cary Xu

remove aggregate from .data/.last

上级 64c15fa7
......@@ -66,12 +66,12 @@ typedef struct {
int32_t len;
uint32_t type : 8;
uint32_t offset : 24;
int64_t sum;
int64_t max;
int64_t min;
int16_t maxIndex;
int16_t minIndex;
int16_t numOfNull;
// int64_t sum;
// int64_t max;
// int64_t min;
// int16_t maxIndex;
// int16_t minIndex;
// int16_t numOfNull;
uint8_t offsetH;
char padding[1];
} SBlockCol;
......
......@@ -1098,9 +1098,9 @@ int tsdbWriteBlockImpl(STsdbRepo *pRepo, STable *pTable, SDFile *pDFile, SDFile
pAggrBlkCol->colId = pDataCol->colId;
if (tDataTypes[pDataCol->type].statisFunc) {
(*tDataTypes[pDataCol->type].statisFunc)(pDataCol->pData, rowsToWrite, &(pBlockCol->min), &(pBlockCol->max),
&(pBlockCol->sum), &(pBlockCol->minIndex), &(pBlockCol->maxIndex),
&(pBlockCol->numOfNull));
// (*tDataTypes[pDataCol->type].statisFunc)(pDataCol->pData, rowsToWrite, &(pBlockCol->min), &(pBlockCol->max),
// &(pBlockCol->sum), &(pBlockCol->minIndex), &(pBlockCol->maxIndex),
// &(pBlockCol->numOfNull));
(*tDataTypes[pDataCol->type].statisFunc)(pDataCol->pData, rowsToWrite, &(pAggrBlkCol->min), &(pAggrBlkCol->max),
&(pAggrBlkCol->sum), &(pAggrBlkCol->minIndex), &(pAggrBlkCol->maxIndex),
&(pAggrBlkCol->numOfNull));
......
......@@ -415,6 +415,8 @@ void *tsdbDecodeSBlockIdx(void *buf, SBlockIdx *pIdx) {
void tsdbGetBlockStatis(SReadH *pReadh, SDataStatis *pStatis, int numOfCols) {
if (!tsdbQueryFromSMA) {
ASSERT(0); // remove Statis from .data/.last
#if 0
SBlockData *pBlockData = pReadh->pBlkData;
for (int i = 0, j = 0; i < numOfCols;) {
......@@ -440,6 +442,7 @@ void tsdbGetBlockStatis(SReadH *pReadh, SDataStatis *pStatis, int numOfCols) {
j++;
}
}
#endif
} else {
SAggrBlkData *pAggrBlkData = pReadh->pAggrBlkData;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册