-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Implement tree
explain for ArrowFileSink
#15206
base: main
Are you sure you want to change the base?
Conversation
@@ -1711,35 +1711,58 @@ physical_plan | |||
|
|||
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/1.json'; | |||
TO '/tmp/1.json'; |
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.
It will also print my local directory if I use a relative path.👀
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.
Yeah, we need to avoid printing the entire path. Let me see if I can find some way
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.
Maybe we can save the original path for display - perhaps we could save the output_url
here as a field on DataSinkConfig 🤔
FileSinkConfig {
...
/// The unresolved URL specified by the user
original_url: String
...
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.
Thanks @alamb ,That's a good idea!
09)│ rows: 1 │ | ||
10)└───────────────────────────┘ | ||
03)│ -------------------- │ | ||
04)│ file:///tmp/1.json │ |
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.
Can we also possibly add format: csv
?
@@ -1711,35 +1711,58 @@ physical_plan | |||
|
|||
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/1.json'; | |||
TO '/tmp/1.json'; |
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.
Yeah, we need to avoid printing the entire path. Let me see if I can find some way
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.
🙏
@@ -1711,35 +1711,58 @@ physical_plan | |||
|
|||
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/1.json'; | |||
TO '/tmp/1.json'; |
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.
Maybe we can save the original path for display - perhaps we could save the output_url
here as a field on DataSinkConfig 🤔
FileSinkConfig {
...
/// The unresolved URL specified by the user
original_url: String
...
This is so close thank you @irenjj |
Which issue does this PR close?
ArrowFileSink
#15112Rationale for this change
What changes are included in this PR?
Are these changes tested?
Are there any user-facing changes?