mirror of
https://github.com/apache/impala.git
synced 2026-01-18 15:00:35 -05:00
- added support for mvn based builds and also a driver script 'recreate_store.sh' to regenerate the data. - switched test setup to create test tables via a hive cli script rather than programmatically - added script to load data into default.AllTypes table (24-way partitioned)
45 lines
1.1 KiB
SQL
45 lines
1.1 KiB
SQL
DROP TABLE IF EXISTS AllTypes;
|
|
CREATE TABLE AllTypes (
|
|
id int,
|
|
bool_col boolean,
|
|
tinyint_col tinyint,
|
|
smallint_col smallint,
|
|
int_col int,
|
|
bigint_col bigint,
|
|
float_col float,
|
|
double_col double,
|
|
date_string_col string,
|
|
string_col string)
|
|
partitioned by (year int, month int)
|
|
row format delimited fields terminated by ',' escaped by '\\' stored as textfile;
|
|
|
|
DROP TABLE IF EXISTS TestTbl;
|
|
CREATE TABLE TestTbl (
|
|
id bigint,
|
|
name string,
|
|
zip int)
|
|
row format delimited fields terminated by ',' escaped by '\\' stored as textfile;
|
|
|
|
CREATE DATABASE IF NOT EXISTS testdb1;
|
|
|
|
DROP TABLE IF EXISTS testdb1.AllTypes;
|
|
CREATE TABLE testdb1.AllTypes (
|
|
id int,
|
|
bool_col boolean,
|
|
tinyint_col tinyint,
|
|
smallint_col smallint,
|
|
int_col int,
|
|
bigint_col bigint,
|
|
float_col float,
|
|
double_col double,
|
|
date_string_col string,
|
|
string_col string)
|
|
row format delimited fields terminated by ',' escaped by '\\' stored as textfile;
|
|
|
|
DROP TABLE IF EXISTS testdb1.TestTbl;
|
|
CREATE TABLE testdb1.TestTbl (
|
|
id bigint,
|
|
name string,
|
|
birthday string)
|
|
row format delimited fields terminated by ',' escaped by '\\' stored as textfile;
|