-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Implement tree
explain for CsvSink
#15204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 │ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is interesting that the format is not shown in this plan 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's triggered by
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree -- can you make a follow on PR for this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I created a new PR #15206, and I found that the actual type of the sink can be determined from the file extension. |
||
03)└─────────────┬─────────────┘ | ||
04)┌─────────────┴─────────────┐ | ||
05)│ DataSourceExec │ | ||
06)│ -------------------- │ | ||
07)│ bytes: 2672 │ | ||
08)│ format: memory │ | ||
09)│ rows: 1 │ | ||
10)└───────────────────────────┘ | ||
|
||
# Test explain tree rendering for CoalesceBatchesExec with limit | ||
statement ok | ||
CREATE TABLE IF NOT EXISTS t1 (a INT) AS VALUES(1),(2),(3),(4),(5),(6),(7),(8),(9),(10); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I debugged a bit more and it seems the issue is that the actual filename target is in
self.config.table_path
rather than self.config_file_groupsHowever, this way is consisent with the other data sinks
@irenjj is there any chance you can make a ticket / PR to fix this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will fix this issue together in #15112.