mirror of
https://github.com/apache/impala.git
synced 2026-01-07 18:02:33 -05:00
IMPALA-10547: Restore TPC-DS "reason" table missing from Kudu schema
Restore the missing "reason" table that was inadvertantly removed from the Kudu TPC-DS schema by a previous commit. Testing: - Manually run load-tpc-kudu.py and verify that it correctly creates the reason table. Manually run TPC-DS query 9 which references the reason table. Change-Id: Ic9c83ecbb8ca07c082f6407842ca67ef81194751 Reviewed-on: http://gerrit.cloudera.org:8080/17117 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Reviewed-by: Grant Henke <granthenke@apache.org> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
committed by
Impala Public Jenkins
parent
16493c0416
commit
466c26047b
12
testdata/datasets/tpcds/tpcds_kudu_template.sql
vendored
12
testdata/datasets/tpcds/tpcds_kudu_template.sql
vendored
@@ -760,6 +760,18 @@ TBLPROPERTIES ('kudu.master_addresses'='{kudu_master}:7051');
|
||||
|
||||
INSERT INTO {target_db_name}.income_band SELECT * FROM {source_db_name}.income_band;
|
||||
|
||||
---- REASON
|
||||
CREATE TABLE IF NOT EXISTS {target_db_name}.reason (
|
||||
r_reason_sk BIGINT PRIMARY KEY,
|
||||
r_reason_id STRING,
|
||||
r_reason_desc STRING
|
||||
)
|
||||
PARTITION BY HASH (r_reason_sk) PARTITIONS {buckets}
|
||||
STORED AS KUDU
|
||||
TBLPROPERTIES ('kudu.master_addresses'='{kudu_master}:7051');
|
||||
|
||||
INSERT INTO {target_db_name}.reason SELECT * FROM {source_db_name}.reason;
|
||||
|
||||
---- SHIP_MODE
|
||||
CREATE TABLE IF NOT EXISTS {target_db_name}.ship_mode (
|
||||
sm_ship_mode_sk BIGINT PRIMARY KEY,
|
||||
|
||||
Reference in New Issue
Block a user