generated from duckdb/extension-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up code and reorganize test files
- Loading branch information
1 parent
d332377
commit b185940
Showing
19 changed files
with
161 additions
and
220 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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# name: test/sql/dat/custom_parameters.test | ||
# description: DAT test suite: use the basic append test to test the delta_file_number param | ||
# group: [delta] | ||
|
||
require parquet | ||
|
||
require delta | ||
|
||
require-env DAT_AVAILABLE | ||
|
||
# Note: this table has 2 parquet files: | ||
# - part-00000-ef42f28f-e8e8-4d54-b51f-c3af96c72a44-c000.snappy.parquet | ||
# - contains letters a,b,c | ||
# - part-00000-c156ac8b-f738-4479-803d-750072dd4c51-c000.snappy.parquet | ||
# - contains letters d,e | ||
|
||
# Test with appends and several custom options | ||
query IIIII | ||
SELECT parse_filename(filename), file_row_number, letter, delta_file_number, number | ||
FROM delta_scan('./delta-kernel-rs/acceptance/tests/dat/out/reader_tests/generated/basic_append/delta', delta_file_number=1, file_row_number=1, filename=1) | ||
---- | ||
part-00000-c156ac8b-f738-4479-803d-750072dd4c51-c000.snappy.parquet 0 d 0 4 | ||
part-00000-c156ac8b-f738-4479-803d-750072dd4c51-c000.snappy.parquet 1 e 0 5 | ||
part-00000-ef42f28f-e8e8-4d54-b51f-c3af96c72a44-c000.snappy.parquet 0 a 1 1 | ||
part-00000-ef42f28f-e8e8-4d54-b51f-c3af96c72a44-c000.snappy.parquet 1 b 1 2 | ||
part-00000-ef42f28f-e8e8-4d54-b51f-c3af96c72a44-c000.snappy.parquet 2 c 1 3 |
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 was deleted.
Oops, something went wrong.
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,15 @@ | ||
# name: test/sql/delta_kernel_rs/basic_partitioned.test | ||
# description: simple table with partitions | ||
# group: [delta_kernel_rs] | ||
|
||
require parquet | ||
|
||
require delta | ||
|
||
# FIXME: this fails due some weird error | ||
mode skip | ||
|
||
statement error | ||
SELECT * FROM delta_scan('./delta-kernel-rs/kernel/tests/data/basic_partitioned') | ||
---- | ||
Failed to read file "/Users/sam/Development/delta-kernel-testing/delta-kernel-rs/kernel/tests/data/basic_partitioned/letter=__HIVE_DEFAULT_PARTITION__ |
2 changes: 1 addition & 1 deletion
2
test/sql/deltatable_with_dv.test → test/sql/delta_kernel_rs/simple_with_dv.test
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
6 changes: 3 additions & 3 deletions
6
test/sql/delta_scan_parquet_params.test → ...ql/delta_kernel_rs/simple_without_dv.test
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
Oops, something went wrong.