mirror of
https://github.com/apache/sqoop.git
synced 2025-05-04 04:49:43 +08:00

Hive allows the use of keywords as column and table names as long as they are escaped using back-ticks. This change makes Sqoop always escape table and column names using back-ticks thereby allowing Sqoop to work with Hive tables that use keywords for either the table name or column names. (Lars Francke via arvind) From: Arvind Prabhakar <arvind@cloudera.com> git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149989 13f79535-47bb-0310-9956-ffa450edef68
3 lines
307 B
Plaintext
3 lines
307 B
Plaintext
CREATE TABLE IF NOT EXISTS `CUSTOM_DELIM_IMPORT` ( `DATA_COL0` STRING, `DATA_COL1` INT, `DATA_COL2` STRING) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\054' LINES TERMINATED BY '\174' STORED AS TEXTFILE;
|
|
LOAD DATA INPATH 'file:BASEPATH/sqoop/warehouse/CUSTOM_DELIM_IMPORT' INTO TABLE `CUSTOM_DELIM_IMPORT`;
|