-
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.
Merge pull request #110 from samansmink/attach-delta-squashed
Support attaching delta tables as catalogs
- Loading branch information
Showing
258 changed files
with
2,823 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
benchmark/micro/snapshot_performance/delta_scan.benchmark | ||
benchmark/micro/snapshot_performance/snapshot_no_pin.benchmark | ||
benchmark/micro/snapshot_performance/snapshot_no_pin_filter.benchmark | ||
benchmark/micro/snapshot_performance/snapshot_pin.benchmark | ||
benchmark/micro/snapshot_performance/snapshot_pin_filter.benchmark |
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 |
---|---|---|
|
@@ -11,5 +11,5 @@ test/python/__pycache__/ | |
data/generated | ||
__azurite*__.json | ||
__blobstorage__ | ||
.venv | ||
venv | ||
.vscode |
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,16 @@ | ||
# name: benchmark/micro/snapshot_performance/delta_scan.benchmark | ||
# description: Reference result to compare attach functions to | ||
# group: [aggregate] | ||
|
||
name delta_scan reference | ||
group snapshot_performance | ||
|
||
require delta | ||
|
||
require parquet | ||
|
||
run | ||
SELECT COUNT(*) FROM delta_scan('./data/generated/delta_rs_tpch_sf1_100_splits/lineitem/delta_lake') | ||
|
||
result I | ||
6001215 |
16 changes: 16 additions & 0 deletions
16
benchmark/micro/snapshot_performance/delta_scan_filter.benchmark
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,16 @@ | ||
# name: benchmark/micro/snapshot_performance/delta_scan.benchmark | ||
# description: Reference result to compare attach functions to | ||
# group: [aggregate] | ||
|
||
name delta_scan reference | ||
group snapshot_performance | ||
|
||
require delta | ||
|
||
require parquet | ||
|
||
run | ||
SELECT COUNT(*) FROM delta_scan('./data/generated/delta_rs_tpch_sf1_100_splits/lineitem/delta_lake') where l_orderkey is not null | ||
|
||
result I | ||
6001215 |
19 changes: 19 additions & 0 deletions
19
benchmark/micro/snapshot_performance/snapshot_no_pin.benchmark
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,19 @@ | ||
# name: benchmark/micro/snapshot_performance/snapshot_no_pin.benchmark | ||
# description: Performance of reading from a table with many log entries | ||
# group: [aggregate] | ||
|
||
name Snapshot no pin | ||
group snapshot_performance | ||
|
||
require delta | ||
|
||
require parquet | ||
|
||
load | ||
ATTACH './data/generated/delta_rs_tpch_sf1_100_splits/lineitem/delta_lake' as lineitem_no_pin (TYPE delta); | ||
|
||
run | ||
SELECT COUNT(*) FROM lineitem_no_pin | ||
|
||
result I | ||
6001215 |
19 changes: 19 additions & 0 deletions
19
benchmark/micro/snapshot_performance/snapshot_no_pin_filter.benchmark
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,19 @@ | ||
# name: benchmark/micro/snapshot_performance/snapshot_no_pin_filter.benchmark | ||
# description: Performance of reading from a table with many log entries | ||
# group: [aggregate] | ||
|
||
name Snapshot no pin filter | ||
group snapshot_performance | ||
|
||
require delta | ||
|
||
require parquet | ||
|
||
load | ||
ATTACH './data/generated/delta_rs_tpch_sf1_100_splits/lineitem/delta_lake' as lineitem_no_pin (TYPE delta); | ||
|
||
run | ||
SELECT COUNT(*) FROM lineitem_no_pin where l_orderkey is not null | ||
|
||
result I | ||
6001215 |
19 changes: 19 additions & 0 deletions
19
benchmark/micro/snapshot_performance/snapshot_pin.benchmark
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,19 @@ | ||
# name: benchmark/micro/snapshot_performance/snapshot_pin.benchmark | ||
# description: Performance of reading from a table with many log entries | ||
# group: [aggregate] | ||
|
||
name Snapshot pin | ||
group snapshot_performance | ||
|
||
require delta | ||
|
||
require parquet | ||
|
||
load | ||
ATTACH './data/generated/delta_rs_tpch_sf1_100_splits/lineitem/delta_lake' as lineitem_pin (TYPE delta, PIN_SNAPSHOT); | ||
|
||
run | ||
SELECT COUNT(*) FROM lineitem_pin | ||
|
||
result I | ||
6001215 |
19 changes: 19 additions & 0 deletions
19
benchmark/micro/snapshot_performance/snapshot_pin_filter.benchmark
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,19 @@ | ||
# name: benchmark/micro/snapshot_performance/snapshot_pin_filter.benchmark | ||
# description: Performance of reading from a table with many log entries | ||
# group: [aggregate] | ||
|
||
name Snapshot pin filter | ||
group snapshot_performance | ||
|
||
require delta | ||
|
||
require parquet | ||
|
||
load | ||
ATTACH './data/generated/delta_rs_tpch_sf1_100_splits/lineitem/delta_lake' as lineitem_pin (TYPE delta, PIN_SNAPSHOT); | ||
|
||
run | ||
SELECT COUNT(*) FROM lineitem_pin where l_orderkey is not null | ||
|
||
result I | ||
6001215 |
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,24 @@ | ||
ATTACH './data/generated/tpcds_sf1/call_center/delta_lake' as call_center (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/catalog_page/delta_lake' as catalog_page (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/catalog_returns/delta_lake' as catalog_returns (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/catalog_sales/delta_lake' as catalog_sales (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/customer/delta_lake' as customer (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/customer_demographics/delta_lake' as customer_demographics (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/customer_address/delta_lake' as customer_address (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/date_dim/delta_lake' as date_dim (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/household_demographics/delta_lake' as household_demographics (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/inventory/delta_lake' as inventory (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/income_band/delta_lake' as income_band (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/item/delta_lake' as item (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/promotion/delta_lake' as promotion (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/reason/delta_lake' as reason (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/ship_mode/delta_lake' as ship_mode (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/store/delta_lake' as store (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/store_returns/delta_lake' as store_returns (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/store_sales/delta_lake' as store_sales (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/time_dim/delta_lake' as time_dim (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/warehouse/delta_lake' as warehouse (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/web_page/delta_lake' as web_page (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/web_returns/delta_lake' as web_returns (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/web_sales/delta_lake' as web_sales (TYPE delta); | ||
ATTACH './data/generated/tpcds_sf1/web_site/delta_lake' as web_site (TYPE delta); |
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,7 @@ | ||
# name: benchmark/tpcds/sf1/local/delta_attach/q01.benchmark | ||
# description: Run query 01 from the TPC-DS benchmark | ||
# group: [sf1] | ||
|
||
template benchmark/tpcds/sf1/local/delta_attach/tpcds_sf1.benchmark.in | ||
QUERY_NUMBER=1 | ||
QUERY_NUMBER_PADDED=01 |
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,7 @@ | ||
# name: benchmark/tpcds/sf1/local/delta_attach/q02.benchmark | ||
# description: Run query 02 from the TPC-DS benchmark | ||
# group: [sf1] | ||
|
||
template benchmark/tpcds/sf1/local/delta_attach/tpcds_sf1.benchmark.in | ||
QUERY_NUMBER=2 | ||
QUERY_NUMBER_PADDED=02 |
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,7 @@ | ||
# name: benchmark/tpcds/sf1/local/delta_attach/q03.benchmark | ||
# description: Run query 03 from the TPC-DS benchmark | ||
# group: [sf1] | ||
|
||
template benchmark/tpcds/sf1/local/delta_attach/tpcds_sf1.benchmark.in | ||
QUERY_NUMBER=3 | ||
QUERY_NUMBER_PADDED=03 |
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,7 @@ | ||
# name: benchmark/tpcds/sf1/local/delta_attach/q04.benchmark | ||
# description: Run query 04 from the TPC-DS benchmark | ||
# group: [sf1] | ||
|
||
template benchmark/tpcds/sf1/local/delta_attach/tpcds_sf1.benchmark.in | ||
QUERY_NUMBER=4 | ||
QUERY_NUMBER_PADDED=04 |
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,7 @@ | ||
# name: benchmark/tpcds/sf1/local/delta_attach/q05.benchmark | ||
# description: Run query 05 from the TPC-DS benchmark | ||
# group: [sf1] | ||
|
||
template benchmark/tpcds/sf1/local/delta_attach/tpcds_sf1.benchmark.in | ||
QUERY_NUMBER=5 | ||
QUERY_NUMBER_PADDED=05 |
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,7 @@ | ||
# name: benchmark/tpcds/sf1/local/delta_attach/q06.benchmark | ||
# description: Run query 06 from the TPC-DS benchmark | ||
# group: [sf1] | ||
|
||
template benchmark/tpcds/sf1/local/delta_attach/tpcds_sf1.benchmark.in | ||
QUERY_NUMBER=6 | ||
QUERY_NUMBER_PADDED=06 |
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,7 @@ | ||
# name: benchmark/tpcds/sf1/local/delta_attach/q07.benchmark | ||
# description: Run query 07 from the TPC-DS benchmark | ||
# group: [sf1] | ||
|
||
template benchmark/tpcds/sf1/local/delta_attach/tpcds_sf1.benchmark.in | ||
QUERY_NUMBER=7 | ||
QUERY_NUMBER_PADDED=07 |
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,7 @@ | ||
# name: benchmark/tpcds/sf1/local/delta_attach/q08.benchmark | ||
# description: Run query 08 from the TPC-DS benchmark | ||
# group: [sf1] | ||
|
||
template benchmark/tpcds/sf1/local/delta_attach/tpcds_sf1.benchmark.in | ||
QUERY_NUMBER=8 | ||
QUERY_NUMBER_PADDED=08 |
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,7 @@ | ||
# name: benchmark/tpcds/sf1/local/delta_attach/q09.benchmark | ||
# description: Run query 09 from the TPC-DS benchmark | ||
# group: [sf1] | ||
|
||
template benchmark/tpcds/sf1/local/delta_attach/tpcds_sf1.benchmark.in | ||
QUERY_NUMBER=9 | ||
QUERY_NUMBER_PADDED=09 |
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,7 @@ | ||
# name: benchmark/tpcds/sf1/local/delta_attach/q10.benchmark | ||
# description: Run query 10 from the TPC-DS benchmark | ||
# group: [sf1] | ||
|
||
template benchmark/tpcds/sf1/local/delta_attach/tpcds_sf1.benchmark.in | ||
QUERY_NUMBER=10 | ||
QUERY_NUMBER_PADDED=10 |
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,7 @@ | ||
# name: benchmark/tpcds/sf1/local/delta_attach/q11.benchmark | ||
# description: Run query 11 from the TPC-DS benchmark | ||
# group: [sf1] | ||
|
||
template benchmark/tpcds/sf1/local/delta_attach/tpcds_sf1.benchmark.in | ||
QUERY_NUMBER=11 | ||
QUERY_NUMBER_PADDED=11 |
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,7 @@ | ||
# name: benchmark/tpcds/sf1/local/delta_attach/q12.benchmark | ||
# description: Run query 12 from the TPC-DS benchmark | ||
# group: [sf1] | ||
|
||
template benchmark/tpcds/sf1/local/delta_attach/tpcds_sf1.benchmark.in | ||
QUERY_NUMBER=12 | ||
QUERY_NUMBER_PADDED=12 |
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,7 @@ | ||
# name: benchmark/tpcds/sf1/local/delta_attach/q13.benchmark | ||
# description: Run query 13 from the TPC-DS benchmark | ||
# group: [sf1] | ||
|
||
template benchmark/tpcds/sf1/local/delta_attach/tpcds_sf1.benchmark.in | ||
QUERY_NUMBER=13 | ||
QUERY_NUMBER_PADDED=13 |
Oops, something went wrong.