File tree Expand file tree Collapse file tree
native/core/src/execution Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,9 +31,9 @@ pub use expand::ExpandExec;
3131mod iceberg_scan;
3232mod parquet_writer;
3333pub use parquet_writer:: ParquetWriterExec ;
34+ mod csv_scan;
3435pub mod projection;
3536mod scan;
36- mod csv_scan;
3737pub use csv_scan:: init_csv_datasource_exec;
3838
3939/// Error returned during executing operators.
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ pub mod expression_registry;
2121pub mod macros;
2222pub mod operator_registry;
2323
24- use crate :: execution:: operators:: IcebergScanExec ;
2524use crate :: execution:: operators:: init_csv_datasource_exec;
25+ use crate :: execution:: operators:: IcebergScanExec ;
2626use crate :: {
2727 errors:: ExpressionError ,
2828 execution:: {
@@ -1123,8 +1123,10 @@ impl PhysicalPlanner {
11231123 ) )
11241124 }
11251125 OpStruct :: CsvScan ( scan) => {
1126- let data_schema = convert_spark_types_to_arrow_schema ( scan. required_schema . as_slice ( ) ) ;
1127- let partition_schema = convert_spark_types_to_arrow_schema ( scan. partition_schema . as_slice ( ) ) ;
1126+ let data_schema =
1127+ convert_spark_types_to_arrow_schema ( scan. required_schema . as_slice ( ) ) ;
1128+ let partition_schema =
1129+ convert_spark_types_to_arrow_schema ( scan. partition_schema . as_slice ( ) ) ;
11281130 let object_store_options: HashMap < String , String > = scan
11291131 . object_store_options
11301132 . iter ( )
@@ -1149,7 +1151,7 @@ impl PhysicalPlanner {
11491151 file_groups,
11501152 data_schema,
11511153 Some ( partition_schema) ,
1152- & scan. csv_options . clone ( ) . unwrap ( )
1154+ & scan. csv_options . clone ( ) . unwrap ( ) ,
11531155 ) ?;
11541156 Ok ( (
11551157 vec ! [ ] ,
Original file line number Diff line number Diff line change @@ -152,6 +152,6 @@ fn get_operator_type(spark_operator: &Operator) -> Option<OperatorType> {
152152 OpStruct :: HashJoin ( _) => Some ( OperatorType :: HashJoin ) ,
153153 OpStruct :: Window ( _) => Some ( OperatorType :: Window ) ,
154154 OpStruct :: Explode ( _) => None , // Not yet in OperatorType enum
155- OpStruct :: CsvScan ( _) => Some ( OperatorType :: CsvScan )
155+ OpStruct :: CsvScan ( _) => Some ( OperatorType :: CsvScan ) ,
156156 }
157157}
You can’t perform that action at this time.
0 commit comments