setup.sql 704 字节
Newer Older
N
Ning Wu 已提交
1 2 3 4 5 6
DROP DATABASE IF EXISTS reuse_gptest;

CREATE DATABASE reuse_gptest;

\c reuse_gptest

7 8
CREATE SCHEMA test;

9
DROP EXTERNAL TABLE IF EXISTS temp_gpload_staging_table;
N
Ning Wu 已提交
10
DROP TABLE IF EXISTS texttable;
11
DROP TABLE IF EXISTS csvtable;
N
Ning Wu 已提交
12 13 14 15
CREATE TABLE texttable (
            s1 text, s2 text, s3 text, dt timestamp,
            n1 smallint, n2 integer, n3 bigint, n4 decimal,
            n5 numeric, n6 real, n7 double precision) DISTRIBUTED BY (n1);
16 17 18
CREATE TABLE csvtable (
	    year int, make text, model text, decription text, price decimal)
            DISTRIBUTED BY (year);
19 20 21
CREATE TABLE test.csvtable (
	    year int, make text, model text, decription text, price decimal)
            DISTRIBUTED BY (year);