-
Notifications
You must be signed in to change notification settings - Fork 594
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
refactor(binder): refactor the logic to valid constraints #10192
Conversation
Codecov Report
@@ Coverage Diff @@
## main #10192 +/- ##
==========================================
- Coverage 71.03% 71.03% -0.01%
==========================================
Files 1231 1231
Lines 210682 210686 +4
==========================================
Hits 149658 149658
- Misses 61024 61028 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 4 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
d7bfef8
to
1fc4eb9
Compare
@@ -119,6 +119,24 @@ impl ColumnIdGenerator { | |||
} | |||
} | |||
|
|||
fn valid_column_options(c: &ColumnDef) -> Result<()> { |
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.
nit: what about naming this ensure_column_options_supported
?
.into_iter() | ||
.map(|c| { | ||
// All columns except `_row_id` or starts with `_rw` should be visible. | ||
let is_hidden = c.name.starts_with("_rw"); | ||
let is_hidden: bool = c.name.starts_with("_rw"); |
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.
Just curious why is this type annotation added
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.
I guess it is produced when copying and pasting the code. thanks!
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
We have actually 2 kinds of bind error's here
This PR split them to different functions.
Checklist For Contributors
./risedev check
(or alias,./risedev c
)Checklist For Reviewers
Documentation
Click here for Documentation
Types of user-facing changes
Please keep the types that apply to your changes, and remove the others.
Release note