refactor(query): do some internal refactor.
This commit is contained in:
parent
ed0b92bb33
commit
af36cb37e6
|
@ -1135,14 +1135,14 @@ void doFilter(const SNode* pFilterNode, SSDataBlock* pBlock, const SArray* pColM
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t st1 = taosGetTimestampUs();
|
int64_t st1 = taosGetTimestampUs();
|
||||||
pError("init completed, el: %d us", st1-st);
|
// pError("init completed, el: %d us", st1 - st);
|
||||||
|
|
||||||
size_t numOfCols = taosArrayGetSize(pBlock->pDataBlock);
|
size_t numOfCols = taosArrayGetSize(pBlock->pDataBlock);
|
||||||
SFilterColumnParam param1 = {.numOfCols = numOfCols, .pDataBlock = pBlock->pDataBlock};
|
SFilterColumnParam param1 = {.numOfCols = numOfCols, .pDataBlock = pBlock->pDataBlock};
|
||||||
code = filterSetDataFromSlotId(filter, ¶m1);
|
code = filterSetDataFromSlotId(filter, ¶m1);
|
||||||
|
|
||||||
int64_t st2 = taosGetTimestampUs();
|
int64_t st2 = taosGetTimestampUs();
|
||||||
pError("set data from slotid, el: %d us", st2-st1);
|
// pError("set data from slotid, el: %d us", st2 - st1);
|
||||||
|
|
||||||
int8_t* rowRes = NULL;
|
int8_t* rowRes = NULL;
|
||||||
|
|
||||||
|
@ -1155,13 +1155,12 @@ void doFilter(const SNode* pFilterNode, SSDataBlock* pBlock, const SArray* pColM
|
||||||
}
|
}
|
||||||
|
|
||||||
int64_t st3 = taosGetTimestampUs();
|
int64_t st3 = taosGetTimestampUs();
|
||||||
pError("do filter, el: %d us", st3-st2);
|
|
||||||
|
|
||||||
extractQualifiedTupleByFilterResult(pBlock, rowRes, keep, status);
|
extractQualifiedTupleByFilterResult(pBlock, rowRes, keep, status);
|
||||||
|
|
||||||
int64_t st4 = taosGetTimestampUs();
|
int64_t st4 = taosGetTimestampUs();
|
||||||
|
|
||||||
pError("extract result filter, el: %d us", st4-st3);
|
pError("extract result filter, el: %d us, rows:%d", st4 - st3, pBlock->info.rows);
|
||||||
|
|
||||||
if (pColMatchInfo != NULL) {
|
if (pColMatchInfo != NULL) {
|
||||||
for (int32_t i = 0; i < taosArrayGetSize(pColMatchInfo); ++i) {
|
for (int32_t i = 0; i < taosArrayGetSize(pColMatchInfo); ++i) {
|
||||||
|
|
Loading…
Reference in New Issue