-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Factor out common datafusion types into another proto file #10649
Conversation
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 looks good to me. Even though this PR is merely and organizational change, it moves a non-trivial amount of code around, so it'd be good to get a careful review from at least one more person. @alamb or @andygrove, do you have time to take a look?
@comphead and @jayzhan211 it'd be good if you took a look too. Let's make sure not to miss anything
use datafusion_common::DataFusionError; | ||
|
||
pub fn proto_error<S: Into<String>>(message: S) -> DataFusionError { | ||
DataFusionError::Internal(message.into()) |
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.
internal_err!
?
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 PR is 💪
Thanks @mustafasrepo
I left some minor comments which doesn't block the PR
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.
LGTM too -- thanks @mustafasrepo
cc @andygrove as we'll have to release the new crate as part of the next release
) * Initial commit * Minor changes * Minor changes * Minor changes * Minor changes * Move Column type * Minor changes buggy * Compiles * Add new types to common * Move scalarvalue * Move new types to common * Move additional fields * Move common types * Minor changes * Change proto definition order * Simplifications * Minor changes * REimport protobuf_common from proto * Address reviews
Which issue does this PR close?
Closes #10477.
Rationale for this change
See issue body for the motivation.
This PR moves protobuf serialialization, deserialization codes for the common types in the Datafusion (e.g types that are under
datafusion_common
) into another proto crate nameddatafusion_proto_common
(where its only dependency from datafusion isdatafusion_common
).Note: This PR, is just reorganization of the existing code.
What changes are included in this PR?
Are these changes tested?
Existing tests should work
Are there any user-facing changes?