fix bugs found in regression test.
This commit is contained in:
parent
79b0ff88fb
commit
5517322290
|
@ -1878,6 +1878,7 @@ static void do_top_function_add(STopBotInfo *pInfo, int32_t maxLen, void *pData,
|
||||||
tVariantCreateFromBinary(&val, pData, tDataTypeDesc[type].nSize, type);
|
tVariantCreateFromBinary(&val, pData, tDataTypeDesc[type].nSize, type);
|
||||||
|
|
||||||
tValuePair **pList = pInfo->res;
|
tValuePair **pList = pInfo->res;
|
||||||
|
assert(pList != NULL);
|
||||||
|
|
||||||
if (pInfo->num < maxLen) {
|
if (pInfo->num < maxLen) {
|
||||||
if (pInfo->num == 0 ||
|
if (pInfo->num == 0 ||
|
||||||
|
|
|
@ -4461,6 +4461,8 @@ int32_t vnodeQuerySingleMeterPrepare(SQInfo *pQInfo, SMeterObj *pMeterObj, SMete
|
||||||
|
|
||||||
// the pQuery->skey is changed during normalizedFirstQueryRange, so set the newest lastkey value
|
// the pQuery->skey is changed during normalizedFirstQueryRange, so set the newest lastkey value
|
||||||
pQuery->lastKey = pQuery->skey;
|
pQuery->lastKey = pQuery->skey;
|
||||||
|
pRuntimeEnv->stableQuery = false;
|
||||||
|
|
||||||
return TSDB_CODE_SUCCESS;
|
return TSDB_CODE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4600,6 +4602,7 @@ int32_t vnodeMultiMeterQueryPrepare(SQInfo *pQInfo, SQuery *pQuery, void *param)
|
||||||
TSKEY revisedStime = taosGetIntervalStartTimestamp(pSupporter->rawSKey, pQuery->nAggTimeInterval,
|
TSKEY revisedStime = taosGetIntervalStartTimestamp(pSupporter->rawSKey, pQuery->nAggTimeInterval,
|
||||||
pQuery->intervalTimeUnit, pQuery->precision);
|
pQuery->intervalTimeUnit, pQuery->precision);
|
||||||
taosInitInterpoInfo(&pRuntimeEnv->interpoInfo, pQuery->order.order, revisedStime, 0, 0);
|
taosInitInterpoInfo(&pRuntimeEnv->interpoInfo, pQuery->order.order, revisedStime, 0, 0);
|
||||||
|
pRuntimeEnv->stableQuery = true;
|
||||||
|
|
||||||
return TSDB_CODE_SUCCESS;
|
return TSDB_CODE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue