-
Notifications
You must be signed in to change notification settings - Fork 598
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(source): move protobuf to codec crate, and refactor tests #18507
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
7a814bf
to
3f75b9a
Compare
8dfd00a
to
cb1d07c
Compare
Serialize, | ||
} | ||
|
||
pub fn compile_pb( |
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.
This is shared between source/parser/decoder and sink/encoder, so it was in schema
at the same level as source
or sink
. After moving to codec
it shall not be part of decoder
.
//! ## Why not directly test the uppermost layer `AvroParserConfig` and `AvroAccessBuilder`? | ||
//! | ||
//! Because their interface are not clean enough, and have complex logic like schema registry. | ||
//! We might need to separate logic to make them clenaer and then we can use it directly for testing. |
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.
//! We might need to separate logic to make them clenaer and then we can use it directly for testing. | |
//! We might need to separate logic to make them cleaner and then we can use it directly for testing. |
- Previously each test case have a slightly different test style. Now they are unified into one simple and powerful one. - Previously we rely on manually compile the test .proto files. But we can compile it ourself in code. - Delete some e2e tests, which is not very helpful, but added complexity of test script. - Split `all-types` from `recursive` to reduce confusion. Signed-off-by: xxchan <[email protected]>
Signed-off-by: xxchan <[email protected]>
Signed-off-by: xxchan <[email protected]>
Signed-off-by: xxchan <[email protected]>
Signed-off-by: xxchan <[email protected]>
Signed-off-by: xxchan <[email protected]>
cb1d07c
to
9f2cfd1
Compare
…18507) Signed-off-by: xxchan <[email protected]>
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
#17002 Similar to the refactors on Avro. Make it more understandable and easier to change/add tests
all-types
fromrecursive
to reduce confusion.Checklist
./risedev check
(or alias,./risedev c
)Documentation
Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.