File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
core/src/serde/physical_plan Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -121,19 +121,19 @@ 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
- scan. base_conf . as_ref ( ) . unwrap ( ) . try_into ( ) ?,
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
- scan. base_conf . as_ref ( ) . unwrap ( ) . try_into ( ) ?,
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
- scan. base_conf . as_ref ( ) . unwrap ( ) . try_into ( ) ?,
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 > =
Original file line number Diff line number Diff line change 15
15
// specific language governing permissions and limitations
16
16
// under the License.
17
17
18
-
19
18
use std:: sync:: atomic:: { AtomicUsize , Ordering } ;
20
19
use std:: sync:: mpsc:: { Receiver , Sender , TryRecvError } ;
21
20
use std:: { sync:: Arc , time:: Duration } ;
Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ use datafusion::error::DataFusionError;
28
28
use datafusion:: execution:: runtime_env:: RuntimeEnv ;
29
29
use datafusion:: physical_plan:: display:: DisplayableExecutionPlan ;
30
30
use datafusion:: physical_plan:: { ExecutionPlan , Partitioning } ;
31
- use datafusion:: prelude:: { ExecutionContext , ExecutionConfig } ;
32
-
31
+ use datafusion:: prelude:: { ExecutionConfig , ExecutionContext } ;
33
32
34
33
/// Ballista executor
35
34
pub struct Executor < T : ' static + AsExecutionPlan > {
You can’t perform that action at this time.
0 commit comments