@@ -474,7 +474,8 @@ impl DataSource for FileScanConfig {
474
474
fn fmt_as ( & self , t : DisplayFormatType , f : & mut Formatter ) -> FmtResult {
475
475
match t {
476
476
DisplayFormatType :: Default | DisplayFormatType :: Verbose => {
477
- let ( schema, _, _, orderings) = self . project ( ) ;
477
+ let schema = self . projected_schema ( ) ;
478
+ let orderings = get_projected_output_ordering ( self , & schema) ;
478
479
479
480
write ! ( f, "file_groups=" ) ?;
480
481
FileGroupsDisplay ( & self . file_groups ) . fmt_as ( t, f) ?;
@@ -1051,7 +1052,8 @@ impl Debug for FileScanConfig {
1051
1052
1052
1053
impl DisplayAs for FileScanConfig {
1053
1054
fn fmt_as ( & self , t : DisplayFormatType , f : & mut Formatter ) -> FmtResult {
1054
- let ( schema, _, _, orderings) = self . project ( ) ;
1055
+ let schema = self . projected_schema ( ) ;
1056
+ let orderings = get_projected_output_ordering ( self , & schema) ;
1055
1057
1056
1058
write ! ( f, "file_groups=" ) ?;
1057
1059
FileGroupsDisplay ( & self . file_groups ) . fmt_as ( t, f) ?;
@@ -1564,7 +1566,7 @@ mod tests {
1564
1566
) ;
1565
1567
1566
1568
// verify the proj_schema includes the last column and exactly the same the field it is defined
1567
- let ( proj_schema, _ , _ , _ ) = conf. project ( ) ;
1569
+ let proj_schema = conf. projected_schema ( ) ;
1568
1570
assert_eq ! ( proj_schema. fields( ) . len( ) , file_schema. fields( ) . len( ) + 1 ) ;
1569
1571
assert_eq ! (
1570
1572
* proj_schema. field( file_schema. fields( ) . len( ) ) ,
@@ -1670,7 +1672,7 @@ mod tests {
1670
1672
assert_eq ! ( source_statistics, statistics) ;
1671
1673
assert_eq ! ( source_statistics. column_statistics. len( ) , 3 ) ;
1672
1674
1673
- let ( proj_schema, .. ) = conf. project ( ) ;
1675
+ let proj_schema = conf. projected_schema ( ) ;
1674
1676
// created a projector for that projected schema
1675
1677
let mut proj = PartitionColumnProjector :: new (
1676
1678
proj_schema,
0 commit comments