@@ -95,7 +95,7 @@ impl AsExecutionPlan for PhysicalPlanNode {
95
95
match plan {
96
96
PhysicalPlanType :: Projection ( projection) => {
97
97
let input: Arc < dyn ExecutionPlan > =
98
- into_physical_plan ! ( projection. input, & ctx) ?;
98
+ into_physical_plan ! ( projection. input, ctx) ?;
99
99
let exprs = projection
100
100
. expr
101
101
. iter ( )
@@ -107,7 +107,7 @@ impl AsExecutionPlan for PhysicalPlanNode {
107
107
}
108
108
PhysicalPlanType :: Filter ( filter) => {
109
109
let input: Arc < dyn ExecutionPlan > =
110
- into_physical_plan ! ( filter. input, & ctx) ?;
110
+ into_physical_plan ! ( filter. input, ctx) ?;
111
111
let predicate = filter
112
112
. expr
113
113
. as_ref ( )
@@ -121,36 +121,36 @@ impl AsExecutionPlan for PhysicalPlanNode {
121
121
Ok ( Arc :: new ( FilterExec :: try_new ( predicate, input) ?) )
122
122
}
123
123
PhysicalPlanType :: CsvScan ( scan) => Ok ( Arc :: new ( CsvExec :: new (
124
- decode_scan_config ( scan. base_conf . as_ref ( ) . unwrap ( ) , & ctx) ?,
124
+ decode_scan_config ( scan. base_conf . as_ref ( ) . unwrap ( ) , ctx) ?,
125
125
scan. has_header ,
126
126
str_to_byte ( & scan. delimiter ) ?,
127
127
) ) ) ,
128
128
PhysicalPlanType :: ParquetScan ( scan) => {
129
129
Ok ( Arc :: new ( ParquetExec :: new (
130
- decode_scan_config ( scan. base_conf . as_ref ( ) . unwrap ( ) , & ctx) ?,
130
+ decode_scan_config ( scan. base_conf . as_ref ( ) . unwrap ( ) , ctx) ?,
131
131
// TODO predicate should be de-serialized
132
132
None ,
133
133
) ) )
134
134
}
135
135
PhysicalPlanType :: AvroScan ( scan) => Ok ( Arc :: new ( AvroExec :: new (
136
- decode_scan_config ( scan. base_conf . as_ref ( ) . unwrap ( ) , & ctx) ?,
136
+ decode_scan_config ( scan. base_conf . as_ref ( ) . unwrap ( ) , ctx) ?,
137
137
) ) ) ,
138
138
PhysicalPlanType :: CoalesceBatches ( coalesce_batches) => {
139
139
let input: Arc < dyn ExecutionPlan > =
140
- into_physical_plan ! ( coalesce_batches. input, & ctx) ?;
140
+ into_physical_plan ! ( coalesce_batches. input, ctx) ?;
141
141
Ok ( Arc :: new ( CoalesceBatchesExec :: new (
142
142
input,
143
143
coalesce_batches. target_batch_size as usize ,
144
144
) ) )
145
145
}
146
146
PhysicalPlanType :: Merge ( merge) => {
147
147
let input: Arc < dyn ExecutionPlan > =
148
- into_physical_plan ! ( merge. input, & ctx) ?;
148
+ into_physical_plan ! ( merge. input, ctx) ?;
149
149
Ok ( Arc :: new ( CoalescePartitionsExec :: new ( input) ) )
150
150
}
151
151
PhysicalPlanType :: Repartition ( repart) => {
152
152
let input: Arc < dyn ExecutionPlan > =
153
- into_physical_plan ! ( repart. input, & ctx) ?;
153
+ into_physical_plan ! ( repart. input, ctx) ?;
154
154
match repart. partition_method {
155
155
Some ( PartitionMethod :: Hash ( ref hash_part) ) => {
156
156
let expr = hash_part
@@ -190,12 +190,12 @@ impl AsExecutionPlan for PhysicalPlanNode {
190
190
}
191
191
PhysicalPlanType :: GlobalLimit ( limit) => {
192
192
let input: Arc < dyn ExecutionPlan > =
193
- into_physical_plan ! ( limit. input, & ctx) ?;
193
+ into_physical_plan ! ( limit. input, ctx) ?;
194
194
Ok ( Arc :: new ( GlobalLimitExec :: new ( input, limit. limit as usize ) ) )
195
195
}
196
196
PhysicalPlanType :: LocalLimit ( limit) => {
197
197
let input: Arc < dyn ExecutionPlan > =
198
- into_physical_plan ! ( limit. input, & ctx) ?;
198
+ into_physical_plan ! ( limit. input, ctx) ?;
199
199
Ok ( Arc :: new ( LocalLimitExec :: new ( input, limit. limit as usize ) ) )
200
200
}
201
201
PhysicalPlanType :: Window ( window_agg) => {
@@ -247,7 +247,7 @@ impl AsExecutionPlan for PhysicalPlanNode {
247
247
}
248
248
PhysicalPlanType :: HashAggregate ( hash_agg) => {
249
249
let input: Arc < dyn ExecutionPlan > =
250
- into_physical_plan ! ( hash_agg. input, & ctx) ?;
250
+ into_physical_plan ! ( hash_agg. input, ctx) ?;
251
251
let mode = protobuf:: AggregateMode :: from_i32 ( hash_agg. mode ) . ok_or_else ( || {
252
252
proto_error ( format ! (
253
253
"Received a HashAggregateNode message with unknown AggregateMode {}" ,
@@ -332,9 +332,9 @@ impl AsExecutionPlan for PhysicalPlanNode {
332
332
}
333
333
PhysicalPlanType :: HashJoin ( hashjoin) => {
334
334
let left: Arc < dyn ExecutionPlan > =
335
- into_physical_plan ! ( hashjoin. left, & ctx) ?;
335
+ into_physical_plan ! ( hashjoin. left, ctx) ?;
336
336
let right: Arc < dyn ExecutionPlan > =
337
- into_physical_plan ! ( hashjoin. right, & ctx) ?;
337
+ into_physical_plan ! ( hashjoin. right, ctx) ?;
338
338
let on: Vec < ( Column , Column ) > = hashjoin
339
339
. on
340
340
. iter ( )
@@ -375,9 +375,9 @@ impl AsExecutionPlan for PhysicalPlanNode {
375
375
}
376
376
PhysicalPlanType :: CrossJoin ( crossjoin) => {
377
377
let left: Arc < dyn ExecutionPlan > =
378
- into_physical_plan ! ( crossjoin. left, & ctx) ?;
378
+ into_physical_plan ! ( crossjoin. left, ctx) ?;
379
379
let right: Arc < dyn ExecutionPlan > =
380
- into_physical_plan ! ( crossjoin. right, & ctx) ?;
380
+ into_physical_plan ! ( crossjoin. right, ctx) ?;
381
381
Ok ( Arc :: new ( CrossJoinExec :: try_new ( left, right) ?) )
382
382
}
383
383
PhysicalPlanType :: ShuffleWriter ( shuffle_writer) => {
@@ -417,8 +417,7 @@ impl AsExecutionPlan for PhysicalPlanNode {
417
417
Ok ( Arc :: new ( EmptyExec :: new ( empty. produce_one_row , schema) ) )
418
418
}
419
419
PhysicalPlanType :: Sort ( sort) => {
420
- let input: Arc < dyn ExecutionPlan > =
421
- into_physical_plan ! ( sort. input, & ctx) ?;
420
+ let input: Arc < dyn ExecutionPlan > = into_physical_plan ! ( sort. input, ctx) ?;
422
421
let exprs = sort
423
422
. expr
424
423
. iter ( )
0 commit comments