Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

refactor: refactor query engine#1137

Merged
ShiKaiWi merged 11 commits into
apache:mainfrom
Rachelint:refactor-the-query-engine
Aug 7, 2023
Merged

refactor: refactor query engine#1137
ShiKaiWi merged 11 commits into
apache:mainfrom
Rachelint:refactor-the-query-engine

Conversation

@Rachelint

@Rachelint Rachelint commented Aug 5, 2023

Copy link
Copy Markdown
Contributor

Rationale

Close #1136
Part of #1112

The query engine impl now is too messy, you can #1136 . Worse, it can't support physical plan's remote execution, which is necessary for #1112.

In this pr, I refactor it for solving problems mentioned above.

Detailed Changes

  • Split physical plan and physical planner's trait definition and impl.
  • Split physical plan's creation and execution.
  • Modify the call path for making it runable again.

Test Plan

Test by exist tests.

@Rachelint Rachelint force-pushed the refactor-the-query-engine branch from 8599043 to b73eefc Compare August 5, 2023 12:47
@Rachelint Rachelint force-pushed the refactor-the-query-engine branch from d18bbf2 to b0536b8 Compare August 5, 2023 13:00
@Rachelint Rachelint marked this pull request as ready for review August 5, 2023 13:34
@tanruixiang

Copy link
Copy Markdown
Member

It's strange that even though I retried CI, it still skipped the unit test.

@tanruixiang tanruixiang changed the title chore: refactor query engine refactor: refactor query engine Aug 7, 2023
@ShiKaiWi

ShiKaiWi commented Aug 7, 2023

Copy link
Copy Markdown
Member

@Rachelint This PR looks good to me. Let's merge it after the ci is fixed.

@ShiKaiWi ShiKaiWi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@ShiKaiWi ShiKaiWi merged commit cd175e2 into apache:main Aug 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The originazation of query engine crate is too messy

3 participants