@@ -43,6 +43,7 @@ use datafusion::physical_plan::{DisplayAs, ExecutionPlan};
4343use datafusion:: prelude:: SessionContext ;
4444use datafusion_proto:: physical_plan:: {
4545 AsExecutionPlan , ComposedPhysicalExtensionCodec , PhysicalExtensionCodec ,
46+ PhysicalProtoConverterExtension ,
4647} ;
4748use datafusion_proto:: protobuf;
4849
@@ -145,6 +146,7 @@ impl PhysicalExtensionCodec for ParentPhysicalExtensionCodec {
145146 buf : & [ u8 ] ,
146147 inputs : & [ Arc < dyn ExecutionPlan > ] ,
147148 _ctx : & TaskContext ,
149+ _proto_converter : & dyn PhysicalProtoConverterExtension ,
148150 ) -> Result < Arc < dyn ExecutionPlan > > {
149151 if buf == "ParentExec" . as_bytes ( ) {
150152 Ok ( Arc :: new ( ParentExec {
@@ -155,7 +157,12 @@ impl PhysicalExtensionCodec for ParentPhysicalExtensionCodec {
155157 }
156158 }
157159
158- fn try_encode ( & self , node : Arc < dyn ExecutionPlan > , buf : & mut Vec < u8 > ) -> Result < ( ) > {
160+ fn try_encode (
161+ & self ,
162+ node : Arc < dyn ExecutionPlan > ,
163+ buf : & mut Vec < u8 > ,
164+ _proto_converter : & dyn PhysicalProtoConverterExtension ,
165+ ) -> Result < ( ) > {
159166 if node. is :: < ParentExec > ( ) {
160167 buf. extend_from_slice ( "ParentExec" . as_bytes ( ) ) ;
161168 Ok ( ( ) )
@@ -226,6 +233,7 @@ impl PhysicalExtensionCodec for ChildPhysicalExtensionCodec {
226233 buf : & [ u8 ] ,
227234 _inputs : & [ Arc < dyn ExecutionPlan > ] ,
228235 _ctx : & TaskContext ,
236+ _proto_converter : & dyn PhysicalProtoConverterExtension ,
229237 ) -> Result < Arc < dyn ExecutionPlan > > {
230238 if buf == "ChildExec" . as_bytes ( ) {
231239 Ok ( Arc :: new ( ChildExec { } ) )
@@ -234,7 +242,12 @@ impl PhysicalExtensionCodec for ChildPhysicalExtensionCodec {
234242 }
235243 }
236244
237- fn try_encode ( & self , node : Arc < dyn ExecutionPlan > , buf : & mut Vec < u8 > ) -> Result < ( ) > {
245+ fn try_encode (
246+ & self ,
247+ node : Arc < dyn ExecutionPlan > ,
248+ buf : & mut Vec < u8 > ,
249+ _proto_converter : & dyn PhysicalProtoConverterExtension ,
250+ ) -> Result < ( ) > {
238251 if node. is :: < ChildExec > ( ) {
239252 buf. extend_from_slice ( "ChildExec" . as_bytes ( ) ) ;
240253 Ok ( ( ) )
0 commit comments