@@ -515,9 +515,6 @@ pub enum AggregateFunctionDefinition {
515515 BuiltIn ( aggregate_function:: AggregateFunction ) ,
516516 /// Resolved to a user defined aggregate function
517517 UDF ( Arc < crate :: AggregateUDF > ) ,
518- /// A aggregation function constructed with name. This variant can not be executed directly
519- /// and instead must be resolved to one of the other variants prior to physical planning.
520- Name ( Arc < str > ) ,
521518}
522519
523520impl AggregateFunctionDefinition {
@@ -526,7 +523,6 @@ impl AggregateFunctionDefinition {
526523 match self {
527524 AggregateFunctionDefinition :: BuiltIn ( fun) => fun. name ( ) ,
528525 AggregateFunctionDefinition :: UDF ( udf) => udf. name ( ) ,
529- AggregateFunctionDefinition :: Name ( func_name) => func_name. as_ref ( ) ,
530526 }
531527 }
532528}
@@ -1857,8 +1853,7 @@ pub(crate) fn create_name(e: &Expr) -> Result<String> {
18571853 null_treatment,
18581854 } ) => {
18591855 let name = match func_def {
1860- AggregateFunctionDefinition :: BuiltIn ( ..)
1861- | AggregateFunctionDefinition :: Name ( ..) => {
1856+ AggregateFunctionDefinition :: BuiltIn ( ..) => {
18621857 create_function_name ( func_def. name ( ) , * distinct, args) ?
18631858 }
18641859 AggregateFunctionDefinition :: UDF ( ..) => {
@@ -1878,8 +1873,7 @@ pub(crate) fn create_name(e: &Expr) -> Result<String> {
18781873 info += & format ! ( " {}" , nt) ;
18791874 }
18801875 match func_def {
1881- AggregateFunctionDefinition :: BuiltIn ( ..)
1882- | AggregateFunctionDefinition :: Name ( ..) => {
1876+ AggregateFunctionDefinition :: BuiltIn ( ..) => {
18831877 Ok ( format ! ( "{}{}" , name, info) )
18841878 }
18851879 AggregateFunctionDefinition :: UDF ( fun) => {
0 commit comments