You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
393 B
16 lines
393 B
3 years ago
|
CREATE TABLE tpch.orders
|
||
|
(O_ORDERKEY BIGINT,
|
||
|
O_CUSTKEY INT,
|
||
|
O_ORDERSTATUS CHAR(1),
|
||
|
O_TOTALPRICE DECIMAL(15,2),
|
||
|
O_ORDERDATE DATE,
|
||
|
O_ORDERPRIORITY CHAR(15),
|
||
|
O_CLERK CHAR(15),
|
||
|
O_SHIPPRIORITY INTEGER,
|
||
|
O_COMMENT VARCHAR(79))
|
||
|
WITH (:LARGE_STORAGE)
|
||
|
:DISTRIBUTED_BY
|
||
|
PARTITION BY RANGE (O_ORDERDATE)
|
||
|
(start('1992-01-01') INCLUSIVE end ('1998-12-31') INCLUSIVE every (30),
|
||
|
default partition others);
|