-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add new configuration item listing_table_ignore_subdirectory
#8565
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
df20098
init
Asura7969 424d665
test
Asura7969 b2d288a
add config
Asura7969 945bf17
Merge branch 'main' into fix_list_all_files
Asura7969 bbeffd7
rename
Asura7969 abb7650
doc
Asura7969 e69183b
fix doc
Asura7969 36e0c8d
Merge branch 'main' into fix_list_all_files
Asura7969 aff207f
add sqllogictests & rename
Asura7969 7a7c8f8
fmt & fix test
Asura7969 e745b91
clippy
Asura7969 3ee2e61
test read partition table
Asura7969 9ea237c
simplify testing
Asura7969 5632324
Merge branch 'main' into fix_list_all_files
Asura7969 fe52098
simplify testing
Asura7969 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -276,6 +276,39 @@ LIMIT 10; | |
0 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC")) | ||
0 2014-08-27T14:00:00Z Timestamp(Millisecond, Some("UTC")) | ||
|
||
# Test config listing_table_ignore_subdirectory: | ||
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. 👍 |
||
|
||
query ITID | ||
COPY (SELECT * FROM src_table WHERE int_col > 6 LIMIT 3) | ||
TO 'test_files/scratch/parquet/test_table/subdir/3.parquet' | ||
(FORMAT PARQUET, SINGLE_FILE_OUTPUT true); | ||
---- | ||
3 | ||
|
||
statement ok | ||
CREATE EXTERNAL TABLE listing_table | ||
STORED AS PARQUET | ||
WITH HEADER ROW | ||
LOCATION 'test_files/scratch/parquet/test_table/*.parquet'; | ||
|
||
statement ok | ||
set datafusion.execution.listing_table_ignore_subdirectory = true; | ||
|
||
# scan file: 0.parquet 1.parquet 2.parquet | ||
query I | ||
select count(*) from listing_table; | ||
---- | ||
9 | ||
|
||
statement ok | ||
set datafusion.execution.listing_table_ignore_subdirectory = false; | ||
|
||
# scan file: 0.parquet 1.parquet 2.parquet 3.parquet | ||
query I | ||
select count(*) from listing_table; | ||
---- | ||
12 | ||
|
||
# Clean up | ||
statement ok | ||
DROP TABLE timestamp_with_tz; | ||
|
@@ -303,7 +336,6 @@ NULL | |
statement ok | ||
DROP TABLE single_nan; | ||
|
||
|
||
statement ok | ||
CREATE EXTERNAL TABLE list_columns | ||
STORED AS PARQUET | ||
|
@@ -319,3 +351,7 @@ SELECT int64_list, utf8_list FROM list_columns | |
|
||
statement ok | ||
DROP TABLE list_columns; | ||
|
||
# Clean up | ||
statement ok | ||
DROP TABLE listing_table; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 updated the description information, do you agree? @alamb
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 don't understand what this is trying to say 🤔
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.
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.
Ah, got it -- thank you -- I will propose a clarification in a follow on PR