irenjj commented on code in PR #15204:
URL: https://github.com/apache/datafusion/pull/15204#discussion_r1993528636


##########
datafusion/sqllogictest/test_files/explain_tree.slt:
##########
@@ -1725,6 +1725,22 @@ physical_plan
 09)│          rows: 1          │
 10)└───────────────────────────┘
 
+query TT
+explain COPY (VALUES (1, 'foo', 1, '2023-01-01'), (2, 'bar', 2, '2023-01-02'), 
(3, 'baz', 3, '2023-01-03'))
+TO 'test_files/scratch/explain_tree/2.csv';
+----
+physical_plan
+01)┌───────────────────────────┐
+02)│        DataSinkExec       │

Review Comment:
   It's triggered by `DataSinkExec`:
   `DisplayFormatType::TreeRender => self.sink().fmt_as(t, f)`
   `CsvSink` is only a part of the `DataSinkExec` format.
   A more reasonable output format might be:
   
   ```
    DataSinkExec
   ---------------
      sink=csv
   
      filegroup...
   ```



-- 
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: github-unsubscr...@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to