hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] [Commented] (HIVE-20375) Json SerDe ignoring the timestamp.formats property
Date Sat, 09 Feb 2019 22:43:00 GMT


BELUGA BEHR commented on HIVE-20375:

I just ran into the same issue.  The description is correct.

I am working on an overhaul of the entire JSON parser.  Will take a look at addressing this.

> Json SerDe ignoring the timestamp.formats property
> --------------------------------------------------
>                 Key: HIVE-20375
>                 URL:
>             Project: Hive
>          Issue Type: Bug
>    Affects Versions: 4.0.0
>            Reporter: slim bouguerra
>            Assignee: Ashutosh Chauhan
>            Priority: Major
> JsonSerd is supposed to accept "timestamp.formats" SerDe property to allow different
timestamp formats, after recent refactor I see that this is not working anymore.
> Looking at the code I can see that The serde is not using the constructed parser with
added format
> But instead it is using Converter
> Then converter is using org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorConverter.TimestampConverter
> This converter does not have any knowledge about user formats or what so ever...
> It is using this static converter org.apache.hadoop.hive.serde2.objectinspector.primitive.PrimitiveObjectInspectorUtils#getTimestampFromString

This message was sent by Atlassian JIRA

View raw message