-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Display all partitions and their files in EXPLAIN VERBOSE #6383
Comments
cc @yahoNanJing and @crepererum I think this is fairly well explained and would also be a good first issue for someone. To reproduce locally you could use something like: $ mkdir /tmp/foo
$ for i in `seq 1 10`; do echo "1" > "/tmp/foo/data$i.csv"; done
$ ls /tmp/foo/
data1.csv data10.csv data2.csv data3.csv data4.csv data5.csv data6.csv data7.csv data8.csv data9.csv
$ datafusion-cli
DataFusion CLI v24.0.0
❯ explain select * from '/tmp/foo';
+---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| plan_type | plan |
+---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| logical_plan | TableScan: /tmp/foo projection=[1] |
| physical_plan | CsvExec: file_groups={10 groups: [[private/tmp/foo/data3.csv], [private/tmp/foo/data2.csv], [private/tmp/foo/data1.csv], [private/tmp/foo/data5.csv], [private/tmp/foo/data4.csv], [private/tmp/foo/data6.csv], [private/tmp/foo/data7.csv], [private/tmp/foo/data9.csv], [private/tmp/foo/data8.csv], [private/tmp/foo/data10.csv]]}, projection=[1], has_header=true |
| | |
+---------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
2 rows in set. Query took 0.033 seconds. On master the above display is truncated. The desire is that with |
I'll try looking into this one |
@alamb it looks like right now there's no simple way to pass |
I think that is a good idea
I do think it sounds ok -- I think the point of I think it would be fine for all the existing Thank you again for looking into this |
Adds DisplayAs trait for structs which could show more details when formatted in the verbose mode Resolves apache#6383
Adds DisplayAs trait for structs which could show more details when formatted in the verbose mode Resolves apache#6383
Adds DisplayAs trait for structs which could show more details when formatted in the verbose mode Resolves apache#6383
Adds DisplayAs trait for structs which could show more details when formatted in the verbose mode Resolves #6383 Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
Is your feature request related to a problem or challenge?
To follow the discussion here and here that even though we want to display fewer partitions in EXPLAIN, we want to display all files and partitions/groups in
EXPLAIN VERBOSE
Describe the solution you'd like
Fully display the number of partitions and their files in
EXPLAIN VERBOSE
. For example,EXPLAIN only include some
EXPLAIN VERBOSE will include all groups and files
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: