irenjj commented on code in PR #15140:
URL: https://github.com/apache/datafusion/pull/15140#discussion_r1989258369
##########
datafusion/physical-plan/src/sorts/sort_preserving_merge.rs:
##########
@@ -186,8 +186,15 @@ impl DisplayAs for SortPreservingMergeExec {
Ok(())
}
DisplayFormatType::TreeRender => {
- // TODO: collect info
- write!(f, "")
+ for (i, e) in self.expr().iter().enumerate() {
+ let e = e.to_string();
+ writeln!(f, "expr{i}={e}")?;
+ }
Review Comment:
In the latest version(#15125), we are no longer limited to using KV to
represent each line of output, so as @2010YOUY01 said, may be we can print
sorted keys without the prefix `expr:` like:
```
date@0 ASC NULLS LAST
time@2 ASC NULLS LAST
...
```
--
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]