-
Notifications
You must be signed in to change notification settings - Fork 600
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
Conversation
.collect::<Vec<_>>() | ||
.map(|pk_col| i2o.try_map(*pk_col)) | ||
.collect::<Option<Vec<_>>>() | ||
.unwrap_or_default() |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 Report
@@ Coverage Diff @@
## main #3171 +/- ##
=======================================
Coverage 73.54% 73.54%
=======================================
Files 739 739
Lines 101804 101804
=======================================
Hits 74873 74873
Misses 26931 26931
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more |
What's changed and what's your intention?
revert #3119
fix #3086, #3118
Checklist
./risedev check
(or alias,./risedev c
)Refer to a related PR or issue link (optional)