Merge pull request #19859 from taosdata/fix/nodisk
fix(query): reset the data load flag when build clean file block.
This commit is contained in:
commit
9dc8946143
|
@ -2960,6 +2960,7 @@ static int32_t doBuildDataBlock(STsdbReader* pReader) {
|
|||
SDataBlockInfo* pInfo = &pReader->pResBlock->info;
|
||||
pInfo->rows = pBlock->nRow;
|
||||
pInfo->id.uid = pScanInfo->uid;
|
||||
pInfo->dataLoad = 0;
|
||||
pInfo->window = (STimeWindow){.skey = pBlock->minKey.ts, .ekey = pBlock->maxKey.ts};
|
||||
setComposedBlockFlag(pReader, false);
|
||||
setBlockAllDumped(&pStatus->fBlockDumpInfo, pBlock->maxKey.ts, pReader->order);
|
||||
|
|
|
@ -122,4 +122,28 @@ if $data01 != 199 then
|
|||
return -1
|
||||
endi
|
||||
|
||||
sql drop table t1
|
||||
|
||||
$rowNum = 8200
|
||||
$ts0 = 1537146000000
|
||||
sql create table t1 (ts timestamp, c1 int)
|
||||
|
||||
$i = 0
|
||||
$ts = $ts0
|
||||
|
||||
$x = 0
|
||||
while $x < $rowNum
|
||||
$xs = $x * $delta
|
||||
$ts = $ts0 + $xs
|
||||
sql insert into t1 values ( $ts , $x )
|
||||
$x = $x + 1
|
||||
endw
|
||||
|
||||
sql delete from t1 where ts<=1537146409500
|
||||
|
||||
sql flush database $db
|
||||
|
||||
print =====================================>TD-22007
|
||||
sql select count(*) from t1 interval(10a)
|
||||
|
||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||
|
|
Loading…
Reference in New Issue