Update projectoperator.c

This commit is contained in:
Liu Jicong 2022-07-25 21:50:51 +08:00 committed by GitHub
parent 2964917125
commit 23f0feca92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -190,7 +190,7 @@ void printDataBlock1(SSDataBlock* pBlock, const char* flag) {
}
char* pBuf = NULL;
qDebug("%s", dumpBlockData(pBlock, flag, &pBuf));
taosMemoryFree(pBuf);
taosMemoryFreeClear(pBuf);
}
SSDataBlock* doProjectOperation(SOperatorInfo* pOperator) {
@ -241,7 +241,7 @@ SSDataBlock* doProjectOperation(SOperatorInfo* pOperator) {
// for stream interval
if (pBlock->info.type == STREAM_RETRIEVE) {
printDataBlock1(pBlock, "project1");
// printDataBlock1(pBlock, "project1");
return pBlock;
}
@ -316,7 +316,7 @@ SSDataBlock* doProjectOperation(SOperatorInfo* pOperator) {
pOperator->cost.openCost = (taosGetTimestampUs() - st) / 1000.0;
}
printDataBlock1(p, "project");
// printDataBlock1(p, "project");
return (p->info.rows > 0) ? p : NULL;
}
@ -601,4 +601,4 @@ SSDataBlock* doGenerateSourceData(SOperatorInfo* pOperator) {
}
return (pRes->info.rows > 0) ? pRes : NULL;
}
}