Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Keywords as JSON properties #24

Closed
sixtus opened this Issue · 5 comments

3 participants

@sixtus

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?

@ChuckConnell
@rcongiu
Owner

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 ?

@ChuckConnell
@rcongiu
Owner

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).

@rcongiu rcongiu closed this issue from a commit
@rcongiu fixes #24 b26d5c8
@rcongiu rcongiu closed this in b26d5c8
@sixtus

Awesome! I'll try asap.

@brndnmtthws brndnmtthws referenced this issue from a commit in brndnmtthws/Hive-JSON-Serde
@rcongiu fixes #24 8482689
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.