未验证 提交 3758c05b 编写于 作者: H haojun Liao 提交者: GitHub

Merge pull request #5280 from taosdata/hotfix/TD-3063

[TD-3063]taosd crashes for last_row query
......@@ -4743,7 +4743,11 @@ static FORCE_INLINE void setEnvForEachBlock(SQInfo* pQInfo, STableQueryInfo* pTa
}
if (QUERY_IS_INTERVAL_QUERY(pQuery)) {
setIntervalQueryRange(pQInfo, pBlockInfo->window.skey);
if (!QUERY_IS_ASC_QUERY(pRuntimeEnv->pQuery)) {
setIntervalQueryRange(pQInfo, pBlockInfo->window.ekey);
} else {
setIntervalQueryRange(pQInfo, pBlockInfo->window.skey);
}
} else { // non-interval query
setExecutionContext(pQInfo, pTableQueryInfo->groupIndex, pBlockInfo->window.ekey + step);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册