Skip to content

Commit

Permalink
optimize create tpch table statments to achieve higher performance (a…
Browse files Browse the repository at this point in the history
…pache#8683)

optimize create tpch table statments to achieve higher performance
  • Loading branch information
englefly authored Mar 29, 2022
1 parent b20af5f commit da87e0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/tpch-tools/create-tpch-tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ CREATE TABLE `partsupp` (
`ps_availqty` integer NOT NULL,
`ps_supplycost` decimal(12, 2) NOT NULL,
`ps_comment` varchar(199) NOT NULL
) DISTRIBUTED BY HASH(`ps_partkey`, `ps_suppkey`) BUCKETS 32 PROPERTIES ("replication_num" = "1");
) DISTRIBUTED BY HASH(`ps_partkey`) BUCKETS 32 PROPERTIES ("replication_num" = "1");

CREATE TABLE `orders` (
`o_orderkey` integer NOT NULL,
Expand Down Expand Up @@ -97,4 +97,4 @@ CREATE TABLE `lineitem` (
`l_shipinstruct` char(25) NOT NULL,
`l_shipmode` char(10) NOT NULL,
`l_comment` varchar(44) NOT NULL
) DISTRIBUTED BY HASH(`l_orderkey`, `l_linenumber`) BUCKETS 48 PROPERTIES ("replication_num" = "1");
) DISTRIBUTED BY HASH(`l_orderkey`) BUCKETS 32 PROPERTIES ("replication_num" = "1");

0 comments on commit da87e0c

Please sign in to comment.