You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2020/08/18 14:03:40 UTC

[GitHub] [arrow] jorgecarleitao commented on a change in pull request #7988: ARROW-9783: [Rust] [DataFusion] Remove aggregate expression data type

jorgecarleitao commented on a change in pull request #7988:
URL: https://github.com/apache/arrow/pull/7988#discussion_r472221795



##########
File path: rust/datafusion/src/logicalplan.rs
##########
@@ -363,8 +335,6 @@ pub enum Expr {
         name: String,
         /// List of expressions to feed to the functions as arguments
         args: Vec<Expr>,
-        /// The `DataType` the expression will yield
-        return_type: DataType,

Review comment:
       I agree with this: we need two interfaces: one internal that supports variable types, so that we abstract out the hard-coded return types and make them functions of the expression, and a public one for users to declared fixed-type UDFs.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org