I am unable to figure out how to read "timestamp" from my json, as hive
FAILED: ParseException line 3:2 mismatched input 'timestamp' expecting Identifier near ',' in column specification
is there an "as ts" syntax?
That's a good point though. JSON doesn't care about hive keywords. One thing I did in another serde (lwes-java) is to add mappings in the serdeproperties:
SERDE JsonSerde WITH SERDEPROPERTIES( 'mapping.timestamp'='ts' )
and map JSON field 'timestamp' into hive column 'ts'. Would that work for you guys ?
I have a preliminary version in a feature branch, if you guys feel like compiling it.
Will merge the feature soon (and have a look at the other issues as well).
Awesome! I'll try asap.