我试图创建如下表。
CREATE TABLE r_test (foo INT, bar STRING, address STRUCT<street:STRING, city:STRING, state:STRING, zip:INT>)
ROW FORMAT SERDE 'org.apache.hadoop.hive.contrib.serde2.MultiDelimitSerDe'
WITH SERDEPROPERTIES (
"field.delim"="<=>",
"collection.delim"="\;",
"mapkey.delim"="@"
);
我在创建的表中遇到如下错误
Error: Error while compiling statement: FAILED: ParseException line 5:25 mismatched input '<EOF>' expecting StringLiteral near '=' in specifying key/value property (state=42000,code=40000)
有人能帮忙吗?
1条答案
按热度按时间w80xi6nr1#
尝试使用unicode字符作为分号,即\u003b
我用unicode字符创建了表,并检查collection.delim是;下图: