-
Notifications
You must be signed in to change notification settings - Fork 18
Add Hive and Iceberg Load benchmark #55
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
Open
PingLiuPing
wants to merge
15
commits into
prestodb:main
Choose a base branch
from
PingLiuPing:lpingbj_load_tpch
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 13 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8f5c569
Add workload for hive iceberg insertion
PingLiuPing d313dba
Remove schema
PingLiuPing 7152357
Change to hive.tpch_sf10_parquet becaues of column name change in pre…
PingLiuPing 123dd9d
Rename files and add workaround for prestissimo tpch column names
PingLiuPing 71b953c
Add iceberg benchmark
PingLiuPing 02d5a42
Add iceberg
PingLiuPing 2d82ce2
plit schema
PingLiuPing a41c35f
Add sf1000 for hive
PingLiuPing 524c962
iceberg native
PingLiuPing 012e185
iceberg native
PingLiuPing 3b883a0
Add missing files for scaling factor 100
PingLiuPing b7364f3
Rename folder
PingLiuPing 9edb174
Fix review comments and adding newline to the end of each file
PingLiuPing 4ab0745
Remove expected_row_counts when there is no expected row counts
PingLiuPing aee3644
Change s3 bucket name and use timestamp as suffix for schema name
PingLiuPing 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 hidden or 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,18 @@ | ||
| { | ||
| "description": "Cleanup tables.", | ||
| "query_files": [ | ||
| "drop-table/customer.sql", | ||
| "drop-table/lineitem.sql", | ||
| "drop-table/nation.sql", | ||
| "drop-table/orders.sql", | ||
| "drop-table/part.sql", | ||
| "drop-table/partsupp.sql", | ||
| "drop-table/region.sql", | ||
| "drop-table/supplier.sql", | ||
| "schema/drop_sf100.sql" | ||
| ], | ||
| "expected_row_counts": { | ||
| "load_tpch_sf100_parquet": [ | ||
| ] | ||
| } | ||
| } | ||
This file contains hidden or 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,18 @@ | ||
| { | ||
| "description": "Cleanup tables.", | ||
| "query_files": [ | ||
| "drop-table/customer.sql", | ||
| "drop-table/lineitem.sql", | ||
| "drop-table/nation.sql", | ||
| "drop-table/orders.sql", | ||
| "drop-table/part.sql", | ||
| "drop-table/partsupp.sql", | ||
| "drop-table/region.sql", | ||
| "drop-table/supplier.sql", | ||
| "schema/drop_sf1000.sql" | ||
| ], | ||
| "expected_row_counts": { | ||
| "load_tpch_sf1000_parquet": [ | ||
| ] | ||
| } | ||
| } |
This file contains hidden or 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,11 @@ | ||
| -- Creating customer table with PARQUET format | ||
| CREATE TABLE customer ( | ||
| custkey BIGINT NOT NULL, | ||
| name VARCHAR(25) NOT NULL, | ||
| address VARCHAR(40) NOT NULL, | ||
| nationkey BIGINT NOT NULL, | ||
| phone VARCHAR(15) NOT NULL, | ||
| acctbal DECIMAL(12,2) NOT NULL, | ||
| mktsegment VARCHAR(10) NOT NULL, | ||
| comment VARCHAR(117) NOT NULL | ||
| ) WITH (format = 'PARQUET'); |
This file contains hidden or 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 @@ | ||
| -- Creating lineitem table with PARQUET format | ||
| CREATE TABLE lineitem ( | ||
| orderkey BIGINT NOT NULL, | ||
| partkey BIGINT NOT NULL, | ||
| suppkey BIGINT NOT NULL, | ||
| linenumber BIGINT NOT NULL, | ||
| quantity DECIMAL(12,2) NOT NULL, | ||
| extendedprice DECIMAL(12,2) NOT NULL, | ||
| discount DECIMAL(12,2) NOT NULL, | ||
| tax DECIMAL(12,2) NOT NULL, | ||
| returnflag VARCHAR(1) NOT NULL, | ||
| linestatus VARCHAR(1) NOT NULL, | ||
| shipdate DATE NOT NULL, | ||
| commitdate DATE NOT NULL, | ||
| receiptdate DATE NOT NULL, | ||
| shipinstruct VARCHAR(25) NOT NULL, | ||
| shipmode VARCHAR(10) NOT NULL, | ||
| comment VARCHAR(44) NOT NULL | ||
| ) WITH (format = 'PARQUET'); |
This file contains hidden or 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 @@ | ||
| -- Creating nation table with PARQUET format | ||
| CREATE TABLE nation ( | ||
| nationkey BIGINT NOT NULL, | ||
| name VARCHAR(25) NOT NULL, | ||
| regionkey BIGINT NOT NULL, | ||
| comment VARCHAR(152) NOT NULL | ||
| ) WITH (format = 'PARQUET'); |
This file contains hidden or 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,12 @@ | ||
| -- Creating orders table with PARQUET format | ||
| CREATE TABLE orders ( | ||
| orderkey BIGINT NOT NULL, | ||
| custkey BIGINT NOT NULL, | ||
| orderstatus VARCHAR(1) NOT NULL, | ||
| totalprice DECIMAL(12,2) NOT NULL, | ||
| orderdate DATE NOT NULL, | ||
| orderpriority VARCHAR(15) NOT NULL, | ||
| clerk VARCHAR(15) NOT NULL, | ||
| shippriority BIGINT NOT NULL, | ||
| comment VARCHAR(79) NOT NULL | ||
| ) WITH (format = 'PARQUET'); |
This file contains hidden or 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,12 @@ | ||
| -- Creating part table with PARQUET format | ||
| CREATE TABLE part ( | ||
| partkey BIGINT NOT NULL, | ||
| name VARCHAR(55) NOT NULL, | ||
| mfgr VARCHAR(25) NOT NULL, | ||
| brand VARCHAR(10) NOT NULL, | ||
| type VARCHAR(25) NOT NULL, | ||
| size BIGINT NOT NULL, | ||
| container VARCHAR(10) NOT NULL, | ||
| retailprice DECIMAL(12,2) NOT NULL, | ||
| comment VARCHAR(23) NOT NULL | ||
| ) WITH (format = 'PARQUET'); |
This file contains hidden or 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,8 @@ | ||
| -- Creating partsupp table with PARQUET format | ||
| CREATE TABLE partsupp ( | ||
| partkey BIGINT NOT NULL, | ||
| suppkey BIGINT NOT NULL, | ||
| availqty BIGINT NOT NULL, | ||
| supplycost DECIMAL(12,2) NOT NULL, | ||
| comment VARCHAR(199) NOT NULL | ||
| ) WITH (format = 'PARQUET'); |
This file contains hidden or 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,6 @@ | ||
| -- Creating region table with PARQUET format | ||
| CREATE TABLE region ( | ||
| regionkey BIGINT NOT NULL, | ||
| name VARCHAR(25) NOT NULL, | ||
| comment VARCHAR(152) NOT NULL | ||
| ) WITH (format = 'PARQUET'); |
This file contains hidden or 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,10 @@ | ||
| -- Creating supplier table with PARQUET format | ||
| CREATE TABLE supplier ( | ||
| suppkey BIGINT NOT NULL, | ||
| name VARCHAR(25) NOT NULL, | ||
| address VARCHAR(40) NOT NULL, | ||
| nationkey BIGINT NOT NULL, | ||
| phone VARCHAR(15) NOT NULL, | ||
| acctbal DECIMAL(12,2) NOT NULL, | ||
| comment VARCHAR(101) NOT NULL | ||
| ) WITH (format = 'PARQUET'); |
This file contains hidden or 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 @@ | ||
| DROP TABLE customer; |
This file contains hidden or 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 @@ | ||
| DROP TABLE lineitem; |
This file contains hidden or 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 @@ | ||
| DROP TABLE nation; |
This file contains hidden or 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 @@ | ||
| DROP TABLE orders; |
This file contains hidden or 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 @@ | ||
| DROP TABLE part; |
This file contains hidden or 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 @@ | ||
| DROP TABLE partsupp; |
This file contains hidden or 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 @@ | ||
| DROP TABLE region; |
This file contains hidden or 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 @@ | ||
| DROP TABLE supplier; |
12 changes: 12 additions & 0 deletions
12
benchmarks/tpch-load/from-tpch-to-parquet-j-100/customer_sf100.sql
This file contains hidden or 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,12 @@ | ||
| -- Inserting into customer | ||
| INSERT INTO customer | ||
| SELECT | ||
| custkey, | ||
| CAST(name AS VARCHAR(25)), | ||
| CAST(address AS VARCHAR(40)), | ||
| nationkey, | ||
| CAST(phone AS VARCHAR(15)), | ||
| CAST(acctbal AS DECIMAL(12,2)), | ||
| CAST(mktsegment AS VARCHAR(10)), | ||
| CAST(comment AS VARCHAR(117)) | ||
| FROM tpch.sf100.customer; |
20 changes: 20 additions & 0 deletions
20
benchmarks/tpch-load/from-tpch-to-parquet-j-100/lineitem_sf100.sql
This file contains hidden or 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,20 @@ | ||
| -- Inserting into lineitem | ||
| INSERT INTO lineitem | ||
| SELECT | ||
| orderkey, | ||
| partkey, | ||
| suppkey, | ||
| linenumber, | ||
| CAST(quantity AS DECIMAL(12,2)), | ||
| CAST(extendedprice AS DECIMAL(12,2)), | ||
| CAST(discount AS DECIMAL(12,2)), | ||
| CAST(tax AS DECIMAL(12,2)), | ||
| CAST(returnflag AS VARCHAR(1)), | ||
| CAST(linestatus AS VARCHAR(1)), | ||
| shipdate, | ||
| commitdate, | ||
| receiptdate, | ||
| CAST(shipinstruct AS VARCHAR(25)), | ||
| CAST(shipmode AS VARCHAR(10)), | ||
| CAST(comment AS VARCHAR(44)) | ||
| FROM tpch.sf100.lineitem; |
8 changes: 8 additions & 0 deletions
8
benchmarks/tpch-load/from-tpch-to-parquet-j-100/nation_sf100.sql
This file contains hidden or 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,8 @@ | ||
| -- Inserting into nation | ||
| INSERT INTO nation | ||
| SELECT | ||
| nationkey, | ||
| CAST(name AS VARCHAR(25)), | ||
| regionkey, | ||
| CAST(comment AS VARCHAR(152)) | ||
| FROM tpch.sf100.nation; |
13 changes: 13 additions & 0 deletions
13
benchmarks/tpch-load/from-tpch-to-parquet-j-100/orders_sf100.sql
This file contains hidden or 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,13 @@ | ||
| -- Inserting into orders | ||
| INSERT INTO orders | ||
| SELECT | ||
| orderkey, | ||
| custkey, | ||
| CAST(orderstatus AS VARCHAR(1)), | ||
| CAST(totalprice AS DECIMAL(12,2)), | ||
| orderdate, | ||
| CAST(orderpriority AS VARCHAR(15)), | ||
| CAST(clerk AS VARCHAR(15)), | ||
| shippriority, | ||
| CAST(comment AS VARCHAR(79)) | ||
| FROM tpch.sf100.orders; |
13 changes: 13 additions & 0 deletions
13
benchmarks/tpch-load/from-tpch-to-parquet-j-100/part_sf100.sql
This file contains hidden or 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,13 @@ | ||
| -- Inserting into part | ||
| INSERT INTO part | ||
| SELECT | ||
| partkey, | ||
| CAST(name AS VARCHAR(55)), | ||
| CAST(mfgr AS VARCHAR(25)), | ||
| CAST(brand AS VARCHAR(10)), | ||
| CAST(type AS VARCHAR(25)), | ||
| size, | ||
| CAST(container AS VARCHAR(10)), | ||
| CAST(retailprice AS DECIMAL(12,2)), | ||
| CAST(comment AS VARCHAR(23)) | ||
| FROM tpch.sf100.part; |
9 changes: 9 additions & 0 deletions
9
benchmarks/tpch-load/from-tpch-to-parquet-j-100/partsupp_sf100.sql
This file contains hidden or 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,9 @@ | ||
| -- Inserting into partsupp | ||
| INSERT INTO partsupp | ||
| SELECT | ||
| partkey, | ||
| suppkey, | ||
| availqty, | ||
| CAST(supplycost AS DECIMAL(12,2)), | ||
| CAST(comment AS VARCHAR(199)) | ||
| FROM tpch.sf100.partsupp; |
7 changes: 7 additions & 0 deletions
7
benchmarks/tpch-load/from-tpch-to-parquet-j-100/region_sf100.sql
This file contains hidden or 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 @@ | ||
| -- Inserting into region | ||
| INSERT INTO region | ||
| SELECT | ||
| regionkey, | ||
| CAST(name AS VARCHAR(25)), | ||
| CAST(comment AS VARCHAR(152)) | ||
| FROM tpch.sf100.region; |
11 changes: 11 additions & 0 deletions
11
benchmarks/tpch-load/from-tpch-to-parquet-j-100/supplier_sf100.sql
This file contains hidden or 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,11 @@ | ||
| -- Inserting into supplier | ||
| INSERT INTO supplier | ||
| SELECT | ||
| suppkey, | ||
| CAST(name AS VARCHAR(25)), | ||
| CAST(address AS VARCHAR(40)), | ||
| nationkey, | ||
| CAST(phone AS VARCHAR(15)), | ||
| CAST(acctbal AS DECIMAL(12,2)), | ||
| CAST(comment AS VARCHAR(101)) | ||
| FROM tpch.sf100.supplier; |
12 changes: 12 additions & 0 deletions
12
benchmarks/tpch-load/from-tpch-to-parquet-j-1000/customer_sf1000.sql
This file contains hidden or 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,12 @@ | ||
| -- Inserting into customer | ||
| INSERT INTO customer | ||
| SELECT | ||
| custkey, | ||
| CAST(name AS VARCHAR(25)), | ||
| CAST(address AS VARCHAR(40)), | ||
| nationkey, | ||
| CAST(phone AS VARCHAR(15)), | ||
| CAST(acctbal AS DECIMAL(12,2)), | ||
| CAST(mktsegment AS VARCHAR(10)), | ||
| CAST(comment AS VARCHAR(117)) | ||
| FROM tpch.sf1000.customer; |
20 changes: 20 additions & 0 deletions
20
benchmarks/tpch-load/from-tpch-to-parquet-j-1000/lineitem_sf1000.sql
This file contains hidden or 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,20 @@ | ||
| -- Inserting into lineitem | ||
| INSERT INTO lineitem | ||
| SELECT | ||
| orderkey, | ||
| partkey, | ||
| suppkey, | ||
| linenumber, | ||
| CAST(quantity AS DECIMAL(12,2)), | ||
| CAST(extendedprice AS DECIMAL(12,2)), | ||
| CAST(discount AS DECIMAL(12,2)), | ||
| CAST(tax AS DECIMAL(12,2)), | ||
| CAST(returnflag AS VARCHAR(1)), | ||
| CAST(linestatus AS VARCHAR(1)), | ||
| shipdate, | ||
| commitdate, | ||
| receiptdate, | ||
| CAST(shipinstruct AS VARCHAR(25)), | ||
| CAST(shipmode AS VARCHAR(10)), | ||
| CAST(comment AS VARCHAR(44)) | ||
| FROM tpch.sf1000.lineitem; |
8 changes: 8 additions & 0 deletions
8
benchmarks/tpch-load/from-tpch-to-parquet-j-1000/nation_sf1000.sql
This file contains hidden or 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,8 @@ | ||
| -- Inserting into nation | ||
| INSERT INTO nation | ||
| SELECT | ||
| nationkey, | ||
| CAST(name AS VARCHAR(25)), | ||
| regionkey, | ||
| CAST(comment AS VARCHAR(152)) | ||
| FROM tpch.sf1000.nation; |
13 changes: 13 additions & 0 deletions
13
benchmarks/tpch-load/from-tpch-to-parquet-j-1000/orders_sf1000.sql
This file contains hidden or 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,13 @@ | ||
| -- Inserting into orders | ||
| INSERT INTO orders | ||
| SELECT | ||
| orderkey, | ||
| custkey, | ||
| CAST(orderstatus AS VARCHAR(1)), | ||
| CAST(totalprice AS DECIMAL(12,2)), | ||
| orderdate, | ||
| CAST(orderpriority AS VARCHAR(15)), | ||
| CAST(clerk AS VARCHAR(15)), | ||
| shippriority, | ||
| CAST(comment AS VARCHAR(79)) | ||
| FROM tpch.sf1000.orders; |
13 changes: 13 additions & 0 deletions
13
benchmarks/tpch-load/from-tpch-to-parquet-j-1000/part_sf1000.sql
This file contains hidden or 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,13 @@ | ||
| -- Inserting into part | ||
| INSERT INTO part | ||
| SELECT | ||
| partkey, | ||
| CAST(name AS VARCHAR(55)), | ||
| CAST(mfgr AS VARCHAR(25)), | ||
| CAST(brand AS VARCHAR(10)), | ||
| CAST(type AS VARCHAR(25)), | ||
| size, | ||
| CAST(container AS VARCHAR(10)), | ||
| CAST(retailprice AS DECIMAL(12,2)), | ||
| CAST(comment AS VARCHAR(23)) | ||
| FROM tpch.sf1000.part; |
9 changes: 9 additions & 0 deletions
9
benchmarks/tpch-load/from-tpch-to-parquet-j-1000/partsupp_sf1000.sql
This file contains hidden or 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,9 @@ | ||
| -- Inserting into partsupp | ||
| INSERT INTO partsupp | ||
| SELECT | ||
| partkey, | ||
| suppkey, | ||
| availqty, | ||
| CAST(supplycost AS DECIMAL(12,2)), | ||
| CAST(comment AS VARCHAR(199)) | ||
| FROM tpch.sf1000.partsupp; |
7 changes: 7 additions & 0 deletions
7
benchmarks/tpch-load/from-tpch-to-parquet-j-1000/region_sf1000.sql
This file contains hidden or 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 @@ | ||
| -- Inserting into region | ||
| INSERT INTO region | ||
| SELECT | ||
| regionkey, | ||
| CAST(name AS VARCHAR(25)), | ||
| CAST(comment AS VARCHAR(152)) | ||
| FROM tpch.sf1000.region; |
11 changes: 11 additions & 0 deletions
11
benchmarks/tpch-load/from-tpch-to-parquet-j-1000/supplier_sf1000.sql
This file contains hidden or 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,11 @@ | ||
| -- Inserting into supplier | ||
| INSERT INTO supplier | ||
| SELECT | ||
| suppkey, | ||
| CAST(name AS VARCHAR(25)), | ||
| CAST(address AS VARCHAR(40)), | ||
| nationkey, | ||
| CAST(phone AS VARCHAR(15)), | ||
| CAST(acctbal AS DECIMAL(12,2)), | ||
| CAST(comment AS VARCHAR(101)) | ||
| FROM tpch.sf1000.supplier; |
12 changes: 12 additions & 0 deletions
12
benchmarks/tpch-load/from-tpch-to-parquet-n-100/customer_sf100.sql
This file contains hidden or 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,12 @@ | ||
| -- Inserting into customer | ||
| INSERT INTO customer | ||
| SELECT | ||
| c_custkey, | ||
| CAST(c_name AS VARCHAR(25)), | ||
| CAST(c_address AS VARCHAR(40)), | ||
| c_nationkey, | ||
| CAST(c_phone AS VARCHAR(15)), | ||
| CAST(c_acctbal AS DECIMAL(12,2)), | ||
| CAST(c_mktsegment AS VARCHAR(10)), | ||
| CAST(c_comment AS VARCHAR(117)) | ||
| FROM tpch.sf100.customer; |
20 changes: 20 additions & 0 deletions
20
benchmarks/tpch-load/from-tpch-to-parquet-n-100/lineitem_sf100.sql
This file contains hidden or 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,20 @@ | ||
| -- Inserting into lineitem | ||
| INSERT INTO lineitem | ||
| SELECT | ||
| l_orderkey, | ||
| l_partkey, | ||
| l_suppkey, | ||
| l_linenumber, | ||
| CAST(l_quantity AS DECIMAL(12,2)), | ||
| CAST(l_extendedprice AS DECIMAL(12,2)), | ||
| CAST(l_discount AS DECIMAL(12,2)), | ||
| CAST(l_tax AS DECIMAL(12,2)), | ||
| CAST(l_returnflag AS VARCHAR(1)), | ||
| CAST(l_linestatus AS VARCHAR(1)), | ||
| l_shipdate, | ||
| l_commitdate, | ||
| l_receiptdate, | ||
| CAST(l_shipinstruct AS VARCHAR(25)), | ||
| CAST(l_shipmode AS VARCHAR(10)), | ||
| CAST(l_comment AS VARCHAR(44)) | ||
| FROM tpch.sf100.lineitem; |
8 changes: 8 additions & 0 deletions
8
benchmarks/tpch-load/from-tpch-to-parquet-n-100/nation_sf100.sql
This file contains hidden or 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,8 @@ | ||
| -- Inserting into nation | ||
| INSERT INTO nation | ||
| SELECT | ||
| n_nationkey, | ||
| CAST(n_name AS VARCHAR(25)), | ||
| n_regionkey, | ||
| CAST(n_comment AS VARCHAR(152)) | ||
| FROM tpch.sf100.nation; |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.