Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: set scan_ranges after preparing node #3738

Merged
merged 1 commit into from
Mar 1, 2022

Conversation

ZiheLiu
Copy link
Contributor

@ZiheLiu ZiheLiu commented Mar 1, 2022

What type of PR is this:

  • bug
  • feature
  • enhancement
  • others

Problem Summary(Required) :

OlapScanNode::set_scan_ranges uses some variables init by OlapScanNode::preapre, so we must call prepare before set_scan_ranges.

The previous PR #3720 move prepare after set_scan_ranges, because OlapScanNode::prepare() calls capture_tablet_rowsets, which needs to be invoked after set_scan_ranges.
Therefore, we rearrange prepare before set_scan_ranges, and call OlapScanNode::capture_tablet_rowset in the last of OlapScanNode::set_scan_ranges.

@kangkaisen kangkaisen merged commit 172f07f into StarRocks:main Mar 1, 2022
ZiheLiu added a commit to ZiheLiu/starrocks that referenced this pull request Mar 1, 2022
ZiheLiu added a commit to ZiheLiu/starrocks that referenced this pull request Mar 1, 2022
@ZiheLiu ZiheLiu deleted the fix/scan_prepare branch March 1, 2022 05:58
caneGuy pushed a commit to caneGuy/starrocks that referenced this pull request Mar 28, 2023
jaogoy pushed a commit to jaogoy/starrocks that referenced this pull request Nov 15, 2023
…Rocks#3873)

(cherry picked from commit bdbe260)

Co-authored-by: trueeyu <lxhhust350@qq.com>
jaogoy pushed a commit to jaogoy/starrocks that referenced this pull request Nov 15, 2023
…Rocks#3874)

(cherry picked from commit bdbe260)

Co-authored-by: trueeyu <lxhhust350@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants