mirror of
https://github.com/apache/impala.git
synced 2026-01-06 06:01:03 -05:00
IMPALA-2776: Remove escapechartesttable and associated tests.
The original purpose of the escapechartesttable was to test Impala's behavior on text tables that have the same character as line terminator and escape character. Recent changes in Hive have made creating such a table impossible because 1) Only newline is allowed as the line terminator 2) Newline is forbidden as the escape character See HIVE-11785 for details on the Hive changes. This commit removes escapechartesttable and all associated tests, but does not add the same enforcement rules as Hive. These enforcement rules should be added in a follow-on change. Change-Id: I2bd9755f4c2cc3d7dfd8d67c3759885951550f08 Reviewed-on: http://gerrit.cloudera.org:8080/1690 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: Alex Behm <alex.behm@cloudera.com>
This commit is contained in:
@@ -1156,37 +1156,6 @@ TBLPROPERTIES("serialization.null.format" = "xyz");
|
||||
---- DATASET
|
||||
functional
|
||||
---- BASE_TABLE_NAME
|
||||
escapechartesttable
|
||||
---- PARTITION_COLUMNS
|
||||
id int
|
||||
---- COLUMNS
|
||||
bool_col boolean
|
||||
---- ROW_FORMAT
|
||||
delimited fields terminated by ',' escaped by '\n'
|
||||
---- ALTER
|
||||
ALTER TABLE {table_name} ADD IF NOT EXISTS PARTITION(id=0);
|
||||
ALTER TABLE {table_name} ADD IF NOT EXISTS PARTITION(id=1);
|
||||
ALTER TABLE {table_name} ADD IF NOT EXISTS PARTITION(id=2);
|
||||
ALTER TABLE {table_name} ADD IF NOT EXISTS PARTITION(id=3);
|
||||
ALTER TABLE {table_name} ADD IF NOT EXISTS PARTITION(id=4);
|
||||
ALTER TABLE {table_name} ADD IF NOT EXISTS PARTITION(id=5);
|
||||
ALTER TABLE {table_name} ADD IF NOT EXISTS PARTITION(id=6);
|
||||
ALTER TABLE {table_name} ADD IF NOT EXISTS PARTITION(id=7);
|
||||
ALTER TABLE {table_name} ADD IF NOT EXISTS PARTITION(id=8);
|
||||
ALTER TABLE {table_name} ADD IF NOT EXISTS PARTITION(id=9);
|
||||
---- DEPENDENT_LOAD
|
||||
INSERT OVERWRITE TABLE {db_name}{db_suffix}.{table_name} partition (id)
|
||||
select distinct bool_col,id FROM {db_name}.alltypesagg where id < 10 order by id;
|
||||
---- LOAD
|
||||
SET hive.exec.dynamic.partition.mode=nonstrict;
|
||||
SET hive.exec.dynamic.partition=true;
|
||||
SET hive.input.format=org.apache.hadoop.hive.ql.io.HiveInputFormat;
|
||||
INSERT OVERWRITE TABLE {db_name}{db_suffix}.{table_name} partition (id)
|
||||
select distinct bool_col,id FROM {db_name}.alltypesagg where id < 10 order by id;
|
||||
====
|
||||
---- DATASET
|
||||
functional
|
||||
---- BASE_TABLE_NAME
|
||||
TblWithRaggedColumns
|
||||
---- COLUMNS
|
||||
str_col string
|
||||
|
||||
Reference in New Issue
Block a user