@@ -86,7 +86,7 @@ pub trait AsLogicalPlan: Debug + Send + Sync + Clone {
86
86
B : BufMut ,
87
87
Self : Sized ;
88
88
89
- async fn try_into_logical_plan (
89
+ fn try_into_logical_plan (
90
90
& self ,
91
91
ctx : & SessionContext ,
92
92
extension_codec : & dyn LogicalExtensionCodec ,
@@ -130,7 +130,7 @@ pub trait LogicalExtensionCodec: Debug + Send + Sync {
130
130
buf : & mut Vec < u8 > ,
131
131
) -> Result < ( ) , DataFusionError > ;
132
132
133
- async fn try_decode_table_provider (
133
+ fn try_decode_table_provider (
134
134
& self ,
135
135
buf : & [ u8 ] ,
136
136
schema : SchemaRef ,
@@ -170,7 +170,7 @@ impl LogicalExtensionCodec for DefaultLogicalExtensionCodec {
170
170
) )
171
171
}
172
172
173
- async fn try_decode_table_provider (
173
+ fn try_decode_table_provider (
174
174
& self ,
175
175
_buf : & [ u8 ] ,
176
176
_schema : SchemaRef ,
@@ -196,7 +196,7 @@ impl LogicalExtensionCodec for DefaultLogicalExtensionCodec {
196
196
macro_rules! into_logical_plan {
197
197
( $PB: expr, $CTX: expr, $CODEC: expr) => { {
198
198
if let Some ( field) = $PB. as_ref( ) {
199
- field. as_ref( ) . try_into_logical_plan( $CTX, $CODEC) . await
199
+ field. as_ref( ) . try_into_logical_plan( $CTX, $CODEC)
200
200
} else {
201
201
Err ( proto_error( "Missing required field in protobuf" ) )
202
202
}
@@ -301,7 +301,7 @@ impl AsLogicalPlan for LogicalPlanNode {
301
301
} )
302
302
}
303
303
304
- async fn try_into_logical_plan (
304
+ fn try_into_logical_plan (
305
305
& self ,
306
306
ctx : & SessionContext ,
307
307
extension_codec : & dyn LogicalExtensionCodec ,
@@ -487,9 +487,11 @@ impl AsLogicalPlan for LogicalPlanNode {
487
487
. iter ( )
488
488
. map ( |expr| parse_expr ( expr, ctx) )
489
489
. collect :: < Result < Vec < _ > , _ > > ( ) ?;
490
- let provider = extension_codec
491
- . try_decode_table_provider ( & scan. custom_table_data , schema, ctx)
492
- . await ?;
490
+ let provider = extension_codec. try_decode_table_provider (
491
+ & scan. custom_table_data ,
492
+ schema,
493
+ ctx,
494
+ ) ?;
493
495
494
496
LogicalPlanBuilder :: scan_with_filters (
495
497
& scan. table_name ,
@@ -591,7 +593,7 @@ impl AsLogicalPlan for LogicalPlanNode {
591
593
. input . clone ( ) . ok_or_else ( || DataFusionError :: Internal ( String :: from (
592
594
"Protobuf deserialization error, CreateViewNode has invalid LogicalPlan input." ,
593
595
) ) ) ?
594
- . try_into_logical_plan ( ctx, extension_codec) . await ?;
596
+ . try_into_logical_plan ( ctx, extension_codec) ?;
595
597
let definition = if !create_view. definition . is_empty ( ) {
596
598
Some ( create_view. definition . clone ( ) )
597
599
} else {
@@ -716,7 +718,7 @@ impl AsLogicalPlan for LogicalPlanNode {
716
718
LogicalPlanType :: Union ( union) => {
717
719
let mut input_plans: Vec < LogicalPlan > = vec ! [ ] ;
718
720
for i in union. inputs . iter ( ) {
719
- let res = i. try_into_logical_plan ( ctx, extension_codec) . await ?;
721
+ let res = i. try_into_logical_plan ( ctx, extension_codec) ?;
720
722
input_plans. push ( res) ;
721
723
}
722
724
@@ -744,7 +746,7 @@ impl AsLogicalPlan for LogicalPlanNode {
744
746
LogicalPlanType :: Extension ( LogicalExtensionNode { node, inputs } ) => {
745
747
let mut input_plans: Vec < LogicalPlan > = vec ! [ ] ;
746
748
for i in inputs. iter ( ) {
747
- let res = i. try_into_logical_plan ( ctx, extension_codec) . await ?;
749
+ let res = i. try_into_logical_plan ( ctx, extension_codec) ?;
748
750
input_plans. push ( res) ;
749
751
}
750
752
0 commit comments