【发布时间】:2016-03-31 06:18:11
【问题描述】:
尝试在配置单元中导入低于data。
姓名、电话、地址
Arverne,(718) 634-4784,"*312 Beach 54 Street
Arverne, NY 11692
(40.59428994144626, -73.78442865540268)*"
Astoria,(718) 278-2220,"*14 01 Astoria Boulevard
Long Island City, NY 11102
(40.77152402451418, -73.92643545073543)*"
Auburndale,(718) 352-2027,"*25 55 Francis Lewis Boulevard
Flushing, NY 11358
(40.76035096822195, -73.79632645819947)*"
但是地址不正确,因此损坏了表数据 我猜想行终止的问题(默认情况下采用 \n,因为地址是 3-4 行),因为当我在示例数据下方运行时
a,b,"e,f"
x,y,"l,m"
以下查询
create table test(c1 string, c2 string, c3 string)
row format serde 'com.bizo.hive.serde.csv.CSVSerde'
with serdeproperties(
"separatorChar" = ",");
它工作正常:
test.c1 test.c2 test.c3
a b c,d
e f g,z
我该如何做到这一点?
【问题讨论】: