Skip to content

Commit

Permalink
VTX-4075: display for projection
Browse files Browse the repository at this point in the history
  • Loading branch information
fsdvh committed Jan 25, 2024
1 parent 85e8504 commit e5a8db7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion datafusion/physical-plan/src/projection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,17 @@ impl DisplayAs for ProjectionExec {
})
.collect();

write!(f, "ProjectionExec: expr=[{}]", expr.join(", "))
match self.output_ordering() {
Some(exprs) => {
write!(
f,
"ProjectionExec: expr=[{}], sort_expr=[{}]",
expr.join(", "),
PhysicalSortExpr::format_list(exprs)
)
}
_ => write!(f, "ProjectionExec: expr=[{}]", expr.join(", ")),
}
}
}
}
Expand Down

0 comments on commit e5a8db7

Please sign in to comment.