-
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
Implement serialization for UDWF and UDAF in plan protobuf #6769
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -585,16 +585,16 @@ impl TryFrom<&Expr> for protobuf::LogicalExprNode { | |
) | ||
} | ||
// TODO: Tracked in https://github.com/apache/arrow-datafusion/issues/4584 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps we can remove the TODO comments as well |
||
WindowFunction::AggregateUDF(_) => { | ||
return Err(Error::NotImplemented( | ||
"UDAF as window function in proto".to_string(), | ||
)) | ||
WindowFunction::AggregateUDF(aggr_udf) => { | ||
protobuf::window_expr_node::WindowFunction::Udaf( | ||
aggr_udf.name.clone(), | ||
) | ||
} | ||
// TODO: Tracked in https://github.com/apache/arrow-datafusion/issues/6733 | ||
WindowFunction::WindowUDF(_) => { | ||
return Err(Error::NotImplemented( | ||
"UDWF as window function in proto".to_string(), | ||
)) | ||
WindowFunction::WindowUDF(window_udf) => { | ||
protobuf::window_expr_node::WindowFunction::Udwf( | ||
window_udf.name.clone(), | ||
) | ||
} | ||
}; | ||
let arg_expr: Option<Box<Self>> = if !args.is_empty() { | ||
|
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 great!
Now all we need is a test for the
WindowUDF
(akaWindowFunction::WindowUDF
) and I think this PR is ready to go!