@@ -6,9 +6,10 @@ use crate::{NetworkShuffleExec, PartitionIsolatorExec};
66use bytes:: Bytes ;
77use datafusion:: arrow:: datatypes:: Schema ;
88use datafusion:: arrow:: datatypes:: SchemaRef ;
9- use datafusion:: common:: internal_datafusion_err;
9+ use datafusion:: common:: { internal_datafusion_err, not_impl_err } ;
1010use datafusion:: error:: DataFusionError ;
1111use datafusion:: execution:: FunctionRegistry ;
12+ use datafusion:: logical_expr:: { AggregateUDF , ScalarUDF , WindowUDF } ;
1213use datafusion:: physical_expr:: EquivalenceProperties ;
1314use datafusion:: physical_plan:: execution_plan:: { Boundedness , EmissionType } ;
1415use datafusion:: physical_plan:: { ExecutionPlan , Partitioning , PlanProperties } ;
@@ -228,6 +229,18 @@ impl PhysicalExtensionCodec for DistributedCodec {
228229 Err ( proto_error ( format ! ( "Unexpected plan {}" , node. name( ) ) ) )
229230 }
230231 }
232+
233+ fn try_encode_udf ( & self , _: & ScalarUDF , _: & mut Vec < u8 > ) -> datafusion:: common:: Result < ( ) > {
234+ not_impl_err ! ( "DistributedCodec does not encode UDFs" )
235+ }
236+
237+ fn try_encode_udaf ( & self , _: & AggregateUDF , _: & mut Vec < u8 > ) -> datafusion:: common:: Result < ( ) > {
238+ not_impl_err ! ( "DistributedCodec does not encode UDAFs" )
239+ }
240+
241+ fn try_encode_udwf ( & self , _: & WindowUDF , _: & mut Vec < u8 > ) -> datafusion:: common:: Result < ( ) > {
242+ not_impl_err ! ( "DistributedCodec does not encode UDWFs" )
243+ }
231244}
232245
233246/// A key that uniquely identifies a stage in a query
0 commit comments