mirror of
https://github.com/apache/impala.git
synced 2025-12-30 03:01:44 -05:00
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 <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
committed by
Impala Public Jenkins
parent
aa654d4b87
commit
2e5d65819a
10
testdata/bin/load-dependent-tables.sql
vendored
10
testdata/bin/load-dependent-tables.sql
vendored
@@ -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":[
|
||||
|
||||
Reference in New Issue
Block a user