adriangb commented on code in PR #20362:
URL: https://github.com/apache/datafusion/pull/20362#discussion_r2837613901
##########
datafusion/datasource/src/file_scan_config.rs:
##########
@@ -1295,12 +1350,16 @@ impl Debug for FileScanConfig {
impl DisplayAs for FileScanConfig {
fn fmt_as(&self, t: DisplayFormatType, f: &mut Formatter) -> FmtResult {
- let schema = self.projected_schema().map_err(|_| std::fmt::Error {})?;
- let orderings = get_projected_output_ordering(self, &schema);
+ let eq_props = self.eq_properties();
+ let orderings = eq_props.oeq_class();
write!(f, "file_groups=")?;
FileGroupsDisplay(&self.file_groups).fmt_as(t, f)?;
+ let schema = self
+ .projected_schema()
+ .map_err(|_| std::fmt::Error)?;
+
Review Comment:
```suggestion
let schema = self.projected_schema().map_err(|_| std::fmt::Error)?;
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]