Skip to content

Conversation

@BugenZhao
Copy link
Member

@BugenZhao BugenZhao commented Mar 15, 2022

What's changed and what's your intention?

As title.

Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests

Refer to a related PR or issue link (optional)

Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
@github-actions github-actions bot added the type/feature Type: New feature. label Mar 15, 2022
@codecov
Copy link

codecov bot commented Mar 15, 2022

Codecov Report

Merging #912 (9450362) into main (0ad4b1f) will decrease coverage by 0.05%.
The diff coverage is 81.39%.

@@             Coverage Diff              @@
##               main     #912      +/-   ##
============================================
- Coverage     72.49%   72.44%   -0.06%     
  Complexity     2766     2766              
============================================
  Files           936      940       +4     
  Lines         55274    55366      +92     
  Branches       1787     1787              
============================================
+ Hits          40070    40108      +38     
- Misses        14314    14368      +54     
  Partials        890      890              
Flag Coverage Δ
java 61.23% <ø> (ø)
rust 76.90% <81.39%> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
rust/frontend/src/binder/mod.rs 100.00% <ø> (ø)
rust/frontend/src/optimizer/plan_node/mod.rs 36.73% <0.00%> (-0.77%) ⬇️
rust/frontend/src/planner/mod.rs 100.00% <ø> (ø)
rust/frontend/tests/plan_test_runner.rs 74.60% <ø> (ø)
...frontend/src/optimizer/plan_node/logical_delete.rs 61.11% <61.11%> (ø)
rust/frontend/src/binder/delete.rs 100.00% <100.00%> (ø)
rust/frontend/src/binder/statement.rs 87.50% <100.00%> (+4.16%) ⬆️
...frontend/src/optimizer/plan_node/logical_insert.rs 57.89% <100.00%> (ø)
rust/frontend/src/planner/delete.rs 100.00% <100.00%> (ø)
rust/frontend/src/planner/statement.rs 100.00% <100.00%> (ø)
... and 6 more

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@BugenZhao BugenZhao marked this pull request as ready for review March 15, 2022 04:53
@BugenZhao
Copy link
Member Author

First time to the frontend. 🤣 Please feel free to take a look!

Copy link
Contributor

@BowenXiao1999 BowenXiao1999 left a comment

Choose a reason for hiding this comment

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

LGTM

@BugenZhao BugenZhao requested a review from st1page March 15, 2022 05:05
Copy link
Contributor

@st1page st1page left a comment

Choose a reason for hiding this comment

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

Rest LGTM


let order = Order::any().clone();
let dist = Distribution::any().clone();
let mut out_fields = FixedBitSet::with_capacity(plan.schema().len());
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe the delete operator's output should have no column?

Copy link
Member Author

Choose a reason for hiding this comment

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

Also seems to return the affected rows?
https://www.postgresql.org/docs/9.6/sql-delete.html

Signed-off-by: Bugen Zhao <[email protected]>
@BugenZhao BugenZhao enabled auto-merge (squash) March 15, 2022 05:32
@BugenZhao BugenZhao merged commit edc167e into main Mar 15, 2022
@BugenZhao BugenZhao deleted the bz/delete-part-2 branch March 15, 2022 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/feature Type: New feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bind & Plan DELETE

4 participants