We can not push down the limit when enable group rescan.

This commit is contained in:
obdev
2023-02-09 17:42:33 +00:00
committed by ob-robot
parent d3f4c4cf95
commit 2317367ef5
3 changed files with 130 additions and 0 deletions

View File

@ -685,6 +685,13 @@ int ObTableScanOp::prepare_pushdown_limit_param()
need_final_limit_ = true;
tsc_rtdef_.scan_rtdef_.limit_param_.offset_ = 0;
tsc_rtdef_.scan_rtdef_.limit_param_.limit_ = -1;
if (nullptr != MY_CTDEF.lookup_ctdef_) {
OB_ASSERT(nullptr != tsc_rtdef_.lookup_rtdef_);
tsc_rtdef_.lookup_rtdef_->limit_param_.offset_ = 0;
tsc_rtdef_.lookup_rtdef_->limit_param_.limit_ = -1;
}
} else if (tsc_rtdef_.has_lookup_limit() || das_ref_.get_das_task_cnt() > 1) {
//for index back, need to final limit output rows in TableScan operator,
//please see me for the reason: https://work.aone.alibaba-inc.com/issue/43232745