From 2e5d65819aaa52e1a89bc5cc212bba3b1b404339 Mon Sep 17 00:00:00 2001 From: David Knupp Date: Wed, 24 Oct 2018 13:38:14 -0700 Subject: [PATCH] IMPALA-7758: Fix LOCATION clause when creating chars_formats_* The current location resolves to /user/hive/warehouse/chars_formats_*. Impala's test data actually lives at /test-warehouse/chars_formats_*. Tested this by reloading data from scratch and running the core tests. Change-Id: I781b484e7a15ccaa5de590563d68b3dca6a658e5 Reviewed-on: http://gerrit.cloudera.org:8080/11789 Reviewed-by: Impala Public Jenkins Tested-by: Impala Public Jenkins --- testdata/bin/load-dependent-tables.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/testdata/bin/load-dependent-tables.sql b/testdata/bin/load-dependent-tables.sql index e94def721..d4ff1026e 100644 --- a/testdata/bin/load-dependent-tables.sql +++ b/testdata/bin/load-dependent-tables.sql @@ -39,7 +39,7 @@ CREATE EXTERNAL TABLE alltypesmixedformat ( partitioned by (year int, month int) row format delimited fields terminated by ',' escaped by '\\' stored as TEXTFILE -LOCATION '${hiveconf:hive.metastore.warehouse.dir}/alltypesmixedformat'; +LOCATION '/test-warehouse/alltypesmixedformat'; INSERT OVERWRITE TABLE alltypesmixedformat PARTITION (year=2009, month=1) SELECT id, bool_col, tinyint_col, smallint_col, int_col, bigint_col, @@ -76,26 +76,26 @@ DROP TABLE IF EXISTS functional_parquet.chars_formats; CREATE EXTERNAL TABLE functional_parquet.chars_formats (cs CHAR(5), cl CHAR(140), vc VARCHAR(32)) STORED AS PARQUET -LOCATION '${hiveconf:hive.metastore.warehouse.dir}/chars_formats_parquet'; +LOCATION '/test-warehouse/chars_formats_parquet'; DROP TABLE IF EXISTS functional_orc_def.chars_formats; CREATE EXTERNAL TABLE functional_orc_def.chars_formats (cs CHAR(5), cl CHAR(140), vc VARCHAR(32)) STORED AS ORC -LOCATION '${hiveconf:hive.metastore.warehouse.dir}/chars_formats_orc_def'; +LOCATION '/test-warehouse/chars_formats_orc_def'; DROP TABLE IF EXISTS functional.chars_formats; CREATE EXTERNAL TABLE functional.chars_formats (cs CHAR(5), cl CHAR(140), vc VARCHAR(32)) ROW FORMAT delimited fields terminated by ',' escaped by '\\' STORED AS TEXTFILE -LOCATION '${hiveconf:hive.metastore.warehouse.dir}/chars_formats_text'; +LOCATION '/test-warehouse/chars_formats_text'; DROP TABLE IF EXISTS functional_avro_snap.chars_formats; CREATE EXTERNAL TABLE functional_avro_snap.chars_formats (cs CHAR(5), cl CHAR(140), vc VARCHAR(32)) STORED AS AVRO -LOCATION '${hiveconf:hive.metastore.warehouse.dir}/chars_formats_avro_snap' +LOCATION '/test-warehouse/chars_formats_avro_snap' TBLPROPERTIES ('avro.schema.literal'='{"type":"record", "name":"CharTypesTest","doc":"Schema generated by Kite", "fields":[