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(optimizer): fix logical scan pk derive #3171

Merged
merged 4 commits into from
Jun 13, 2022
Merged

Conversation

st1page
Copy link
Contributor

@st1page st1page commented Jun 13, 2022

What's changed and what's your intention?

revert #3119
fix #3086, #3118

Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests
  • All checks passed in ./risedev check (or alias, ./risedev c)

Refer to a related PR or issue link (optional)

@github-actions github-actions bot added the type/fix Bug fix label Jun 13, 2022
@st1page st1page requested a review from skyzh June 13, 2022 08:30
.collect::<Vec<_>>()
.map(|pk_col| i2o.try_map(*pk_col))
.collect::<Option<Vec<_>>>()
.unwrap_or_default()
Copy link
Contributor

Choose a reason for hiding this comment

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

.expect("pk lost during optimization") instead of returning an empty pk set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the batch query does not need the pk... I am thinking if we can move the pk property only in stream plan node.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

.expect("pk lost during optimization")

I will add it as an assert when stream plan node created

@codecov
Copy link

codecov bot commented Jun 13, 2022

Codecov Report

Merging #3171 (7cb909f) into main (36cf71f) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #3171   +/-   ##
=======================================
  Coverage   73.54%   73.54%           
=======================================
  Files         739      739           
  Lines      101804   101804           
=======================================
  Hits        74873    74873           
  Misses      26931    26931           
Flag Coverage Δ
rust 73.54% <100.00%> (ø)

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

Impacted Files Coverage Δ
...rontend/src/optimizer/plan_node/logical_project.rs 98.93% <100.00%> (+<0.01%) ⬆️
...c/frontend/src/optimizer/plan_node/logical_scan.rs 100.00% <100.00%> (ø)
...rc/frontend/src/optimizer/property/distribution.rs 93.04% <100.00%> (+0.80%) ⬆️
src/meta/src/barrier/mod.rs 69.13% <0.00%> (-0.33%) ⬇️

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

@st1page st1page merged commit 14f995c into main Jun 13, 2022
@st1page st1page deleted the sts/fix_logical_scan_pk branch June 13, 2022 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/fix Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

invalid flush status: double insert
2 participants