Closed updatex closed 7 years ago
mapping works to map column -> json attribute but you can't specify the whole json path, just the atttribute. In your case, this should work: WITH SERDEPROPERTIES( "mapping.hobby1"="hobby", "mapping.hobby2"="Hobby")
hi rcongiu,
I tried same approach but still giving me duplicate issue. Please advice.
Here are details : json-serde-1.3.8-SNAPSHOT-jar-with-dependencies.jar
sample json : {"Time":"forme","time":"foryou"}
ddl : create external table sample_dup1(duptime1 string, duptime2 string) ROW FORMAT SERDE 'org.openx.data.jsonserde.JsonSerDe' WITH SERDEPROPERTIES ( "mapping.duptime1"="Time", "mapping.duptime2"="time") location '/user/hive/warehouse/samp_dup_test/';
one row :
can i use the follwing ddl?
I see someone mentioned similar questions. #104 Hope someone can help me.