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

[Refactor][Load]Unify common part in streamLoad and loadingTask planner #19118

Closed
wants to merge 12 commits into from
Closed

Conversation

sollhui
Copy link
Contributor

@sollhui sollhui commented Apr 26, 2023

Proposed changes

Issue Number: #18476

Please only focus on streamLoadPlanner LoadingTaskPlanner and LoadPlanner

@github-actions github-actions bot added area/load Issues or PRs related to all kinds of load area/nereids area/planner Issues or PRs related to the query planner labels Apr 26, 2023
@sollhui sollhui changed the title [Refactor][Load]Unify common part in stream broker S3 load planner [Refactor][Load]Unify common part in streamLoad and loadingTask planner Apr 26, 2023
@morningman morningman self-assigned this Apr 27, 2023

protected DescriptorTable descTable;

public void preparePlan(List<List<TBrokerFileStatus>> fileStatusesList, int filesAdded) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we use insert into select to replace current stream load logic, this planner maybe useless....

Copy link
Contributor Author

@sollhui sollhui Apr 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry,I don't quite understand the meaning of your comment in this line. I think the streamloadplanner won't call the prepareplan method, it's just abstracted out to unify the plan method.old is plan(TUniqueId loadId, List<List> fileStatusesList, int filesAdded),now plan(TUniqueId loadId),the purpose of this pr is only to unify common part in streamLoad and loadingTask planner,there is no logical modification.

@freemandealer
Copy link
Contributor

run p0

@sollhui
Copy link
Contributor Author

sollhui commented May 12, 2023

run buildall

Copy link
Contributor

@freemandealer freemandealer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dataroaring
Copy link
Contributor

run buildall

@sollhui sollhui closed this Aug 25, 2023
@sollhui sollhui deleted the load branch September 28, 2023 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/load Issues or PRs related to all kinds of load area/nereids area/planner Issues or PRs related to the query planner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants