<fix>[query]: move the reset columnInfoData to the right place.
This commit is contained in:
parent
fce5d48835
commit
cd71bf4816
|
@ -2828,6 +2828,11 @@ static bool loadDataBlockFromTableSeq(STsdbReadHandle* pTsdbReadHandle) {
|
||||||
bool tsdbNextDataBlock(tsdbReaderT pHandle) {
|
bool tsdbNextDataBlock(tsdbReaderT pHandle) {
|
||||||
STsdbReadHandle* pTsdbReadHandle = (STsdbReadHandle*) pHandle;
|
STsdbReadHandle* pTsdbReadHandle = (STsdbReadHandle*) pHandle;
|
||||||
|
|
||||||
|
for(int32_t i = 0; i < taosArrayGetSize(pTsdbReadHandle->pColumns); ++i) {
|
||||||
|
SColumnInfoData* pColInfo = taosArrayGet(pTsdbReadHandle->pColumns, i);
|
||||||
|
colInfoDataCleanup(pColInfo, pTsdbReadHandle->outputCapacity);
|
||||||
|
}
|
||||||
|
|
||||||
if (emptyQueryTimewindow(pTsdbReadHandle)) {
|
if (emptyQueryTimewindow(pTsdbReadHandle)) {
|
||||||
tsdbDebug("%p query window not overlaps with the data set, no result returned, %s", pTsdbReadHandle, pTsdbReadHandle->idStr);
|
tsdbDebug("%p query window not overlaps with the data set, no result returned, %s", pTsdbReadHandle, pTsdbReadHandle->idStr);
|
||||||
return false;
|
return false;
|
||||||
|
@ -3253,12 +3258,6 @@ SArray* tsdbRetrieveDataBlock(tsdbReaderT* pTsdbReadHandle, SArray* pIdList) {
|
||||||
* 1. data is from cache, 2. data block is not completed qualified to query time range
|
* 1. data is from cache, 2. data block is not completed qualified to query time range
|
||||||
*/
|
*/
|
||||||
STsdbReadHandle* pHandle = (STsdbReadHandle*)pTsdbReadHandle;
|
STsdbReadHandle* pHandle = (STsdbReadHandle*)pTsdbReadHandle;
|
||||||
|
|
||||||
for(int32_t i = 0; i < taosArrayGetSize(pHandle->pColumns); ++i) {
|
|
||||||
SColumnInfoData* pColInfo = taosArrayGet(pHandle->pColumns, i);
|
|
||||||
colInfoDataCleanup(pColInfo, pHandle->outputCapacity);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (pHandle->cur.fid == INT32_MIN) {
|
if (pHandle->cur.fid == INT32_MIN) {
|
||||||
return pHandle->pColumns;
|
return pHandle->pColumns;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -100,6 +100,8 @@ while $dbCnt < 2
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
|
||||||
|
print =================> 1
|
||||||
sql select * from `Table`
|
sql select * from `Table`
|
||||||
print rows: $rows
|
print rows: $rows
|
||||||
print $data00 $data01 $data02 $data03
|
print $data00 $data01 $data02 $data03
|
||||||
|
@ -117,6 +119,7 @@ while $dbCnt < 2
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
print ================>2
|
||||||
sql select * from `TAble`
|
sql select * from `TAble`
|
||||||
print rows: $rows
|
print rows: $rows
|
||||||
print $data00 $data01 $data02 $data03
|
print $data00 $data01 $data02 $data03
|
||||||
|
|
Loading…
Reference in New Issue