File tree Expand file tree Collapse file tree
substrait/src/logical_plan/producer/rel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2774,7 +2774,6 @@ impl TableScan {
27742774 ///
27752775 /// This method accepts column indices for backward compatibility and
27762776 /// converts them internally to column expressions.
2777- #[ expect( clippy:: needless_pass_by_value) ]
27782777 pub fn try_new (
27792778 table_name : impl Into < TableReference > ,
27802779 table_source : Arc < dyn TableSource > ,
Original file line number Diff line number Diff line change @@ -166,7 +166,9 @@ pub fn from_table_scan(
166166 // We need to construct this from the source schema and scan indices since
167167 // `projected_schema` is the final output schema after complex projections.
168168 let scan_output_schema = {
169- let indices = scan_indices. as_ref ( ) . expect ( "scan_indices should be Some when remainder_projection is Some" ) ;
169+ let indices = scan_indices
170+ . as_ref ( )
171+ . expect ( "scan_indices should be Some when remainder_projection is Some" ) ;
170172 let projected_arrow_schema = source_schema. project ( indices) ?;
171173 Arc :: new ( DFSchema :: try_from_qualified_schema (
172174 scan. table_name . clone ( ) ,
@@ -179,8 +181,10 @@ pub fn from_table_scan(
179181 . map ( |e| producer. handle_expr ( e, & scan_output_schema) )
180182 . collect :: < datafusion:: common:: Result < Vec < _ > > > ( ) ?;
181183
182- let emit_kind =
183- create_project_remapping ( expressions. len ( ) , scan_output_schema. fields ( ) . len ( ) ) ;
184+ let emit_kind = create_project_remapping (
185+ expressions. len ( ) ,
186+ scan_output_schema. fields ( ) . len ( ) ,
187+ ) ;
184188 let common = RelCommon {
185189 emit_kind : Some ( emit_kind) ,
186190 hint : None ,
You can’t perform that action at this time.
0 commit comments