-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1563715
commit 7291aa5
Showing
2 changed files
with
49 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# name: test/sql/generated/file_skipping_all_types.test | ||
# description: Test filter pushdown succeeds on all file types we can push down | ||
# group: [delta_generated] | ||
|
||
require parquet | ||
|
||
require delta | ||
|
||
require-env GENERATED_DATA_AVAILABLE | ||
|
||
# TODO: this doesn't appear to skip files yet | ||
# TODO: add tests once https://github.com/duckdb/duckdb/pull/12488 is available | ||
|
||
query I | ||
select value | ||
from delta_scan('./data/generated/test_file_skipping/bool/delta_lake') | ||
where part != false | ||
order by value | ||
---- | ||
true | ||
|
||
foreach type bool int tinyint smallint bigint varchar | ||
|
||
query I | ||
select value | ||
from delta_scan('./data/generated/test_file_skipping/${type}/delta_lake') | ||
where part != 0 | ||
order by value | ||
---- | ||
1 | ||
|
||
endloop | ||
|
||
foreach type float double | ||
|
||
query I | ||
select value | ||
from delta_scan('./data/generated/test_file_skipping/${type}/delta_lake') | ||
where part > 0.5 | ||
order by value | ||
---- | ||
1.0 | ||
|
||
endloop |