adj operator res
This commit is contained in:
parent
d999c00227
commit
cf489cb442
|
@ -2556,13 +2556,9 @@ static int32_t rebuildDeleteBlockData(SSDataBlock* pBlock, STimeWindow* pWindow,
|
||||||
|
|
||||||
if (hasUnqualified) {
|
if (hasUnqualified) {
|
||||||
code = trimDataBlock(pBlock, pBlock->info.rows, p);
|
code = trimDataBlock(pBlock, pBlock->info.rows, p);
|
||||||
QUERY_CHECK_CODE(code, lino, _end);
|
|
||||||
qDebug("%s re-build delete datablock, start key revised to:%" PRId64 ", rows:%" PRId64, id, skey,
|
qDebug("%s re-build delete datablock, start key revised to:%" PRId64 ", rows:%" PRId64, id, skey,
|
||||||
pBlock->info.rows);
|
pBlock->info.rows);
|
||||||
if (code != TSDB_CODE_SUCCESS) {
|
QUERY_CHECK_CODE(code, lino, _end);
|
||||||
qError("%s failed at line %d since %s", __func__, __LINE__, tstrerror(code));
|
|
||||||
return code;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
qDebug("%s not update the delete block", id);
|
qDebug("%s not update the delete block", id);
|
||||||
}
|
}
|
||||||
|
@ -2752,7 +2748,7 @@ static int32_t doQueueScanNext(SOperatorInfo* pOperator, SSDataBlock** ppRes) {
|
||||||
|
|
||||||
if (isTaskKilled(pTaskInfo)) {
|
if (isTaskKilled(pTaskInfo)) {
|
||||||
(*ppRes) = NULL;
|
(*ppRes) = NULL;
|
||||||
return code;
|
return pTaskInfo->code;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pTaskInfo->streamInfo.currentOffset.type == TMQ_OFFSET__SNAPSHOT_DATA) {
|
if (pTaskInfo->streamInfo.currentOffset.type == TMQ_OFFSET__SNAPSHOT_DATA) {
|
||||||
|
@ -2762,8 +2758,8 @@ static int32_t doQueueScanNext(SOperatorInfo* pOperator, SSDataBlock** ppRes) {
|
||||||
if (pResult && pResult->info.rows > 0) {
|
if (pResult && pResult->info.rows > 0) {
|
||||||
bool hasPrimaryKey = pAPI->tqReaderFn.tqGetTablePrimaryKey(pInfo->tqReader);
|
bool hasPrimaryKey = pAPI->tqReaderFn.tqGetTablePrimaryKey(pInfo->tqReader);
|
||||||
code = processPrimaryKey(pResult, hasPrimaryKey, &pTaskInfo->streamInfo.currentOffset);
|
code = processPrimaryKey(pResult, hasPrimaryKey, &pTaskInfo->streamInfo.currentOffset);
|
||||||
qDebug("tmqsnap doQueueScan get data uid:%" PRId64 "", pResult->info.id.uid);
|
qDebug("tmqsnap doQueueScan get data utid:%" PRId64 "", pResult->info.id.uid);
|
||||||
if (pResult->info.rows > 0) {
|
if (pResult->info.rows > 0 || code != TSDB_CODE_SUCCESS) {
|
||||||
(*ppRes) = pResult;
|
(*ppRes) = pResult;
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
|
@ -292,18 +292,6 @@ class TDTestCase:
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
def checkVgroupTable(self):
|
|
||||||
buildPath = tdCom.getBuildPath()
|
|
||||||
cfgPath = tdCom.getClientCfgPath()
|
|
||||||
cmdStr = '%s/build/bin/tmq_taosx_ci -c %s -sv 1 -dv 1 -t'%(buildPath, cfgPath)
|
|
||||||
tdLog.info(cmdStr)
|
|
||||||
os.system(cmdStr)
|
|
||||||
|
|
||||||
self.checkJson(cfgPath, "tmq_taosx_tmp_snapshot")
|
|
||||||
self.checkDataTable()
|
|
||||||
|
|
||||||
return
|
|
||||||
|
|
||||||
def checkSnapshot1VgroupTable(self):
|
def checkSnapshot1VgroupTable(self):
|
||||||
buildPath = tdCom.getBuildPath()
|
buildPath = tdCom.getBuildPath()
|
||||||
cfgPath = tdCom.getClientCfgPath()
|
cfgPath = tdCom.getClientCfgPath()
|
||||||
|
|
Loading…
Reference in New Issue