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: check for table scan before expanding #2491

Merged
merged 8 commits into from
Sep 26, 2023

Conversation

waynexia
Copy link
Member

@waynexia waynexia commented Sep 26, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

DistPlanner should only modify "queries" that need to access remote data. LogicalPlan also contains some DDL/DML plan which should be ignored by our planner

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Merging #2491 (2dfc443) into develop (515ce82) will decrease coverage by 0.11%.
Report is 1 commits behind head on develop.
The diff coverage is 100.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2491      +/-   ##
===========================================
- Coverage    84.98%   84.88%   -0.11%     
===========================================
  Files          726      729       +3     
  Lines       115592   115862     +270     
===========================================
+ Hits         98241    98353     +112     
- Misses       17351    17509     +158     

Copy link
Contributor

@killme2008 killme2008 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@killme2008
Copy link
Contributor

@waynexia There is a clippy warning.

Signed-off-by: Ruihang Xia <[email protected]>
@killme2008
Copy link
Contributor

You have to update the sqlness result too. @waynexia

Signed-off-by: Ruihang Xia <[email protected]>
@killme2008
Copy link
Contributor

@v0y4g3r @evenyag Please take a look

Copy link
Contributor

@zhongzc zhongzc left a comment

Choose a reason for hiding this comment

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

Hope that there will be improvements in "dynamically" executed DML in the future

@waynexia waynexia enabled auto-merge September 26, 2023 12:00
@waynexia waynexia added this pull request to the merge queue Sep 26, 2023
Merged via the queue into GreptimeTeam:develop with commit e352fb4 Sep 26, 2023
13 checks passed
@waynexia waynexia deleted the planner-avoid-dml branch September 26, 2023 12:22
paomian pushed a commit to paomian/greptimedb that referenced this pull request Oct 19, 2023
* fix: check for table scan before expanding

Signed-off-by: Ruihang Xia <[email protected]>

* change assert_ok to unwrap

Signed-off-by: Ruihang Xia <[email protected]>

* fix clippy warning

Signed-off-by: Ruihang Xia <[email protected]>

* update sqlness result

Signed-off-by: Ruihang Xia <[email protected]>

* don't skip dml

Signed-off-by: Ruihang Xia <[email protected]>

* uncomment ignored tests

Signed-off-by: Ruihang Xia <[email protected]>

---------

Signed-off-by: Ruihang Xia <[email protected]>
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.

Support LogicalPlan::Insert to InsertRequest
3 participants