Member since
11-03-2016
4
Posts
3
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
22390 | 11-16-2016 12:28 PM |
11-16-2016
12:48 PM
This is exactly what is causing the error.... Hive thinks the ; ends the statement, despite the quotes
... View more
11-16-2016
12:28 PM
1 Kudo
Nevermind: this does work FIELDS TERMINATED BY '\u0059'
... View more
11-16-2016
12:17 PM
2 Kudos
EDIT: FIELDS TERMINATED BY '\u0059' WORKS
I am trying to create an external table from a csv file with ; as delimiter. I have tried FIELDS TERMINATED BY ';'
FIELDS TERMINATED BY '\;'
FIELDS TERMINATED BY '\\;' Modifying the data is not an option. This is the hive script: CREATE EXTERNAL TABLE table1(
f STRING
)
COMMENT 'table 1'
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\;'
STORED AS TEXTFILE
LOCATION '/path/to/hdfs/'
tblproperties ("skip.header.line.count"="1"); I get the following error, in all cases: Error while compiling statement: FAILED: ParseException line 72:23 mismatched input '<EOF>' expecting StringLiteral near 'BY' in table row format's field separator [ERROR_STATUS]
... View more
Labels: