cmunkey commented on PR #3439:
URL: https://github.com/apache/hive/pull/3439#issuecomment-1190587588
@JsonSerialize(using = UTCSerializer.class)
private Long dumpStartTime;
then
public class UTCSerializer extends JsonSerializer<Long> {
@Override
public void serialize(Long value, JsonGenerator gen, SerializerProvider
serializers) throws IOException {
LocalDateTime dateTime = LocalDateTime.ofEpochSecond(value, 0,
ZoneOffset.UTC);
// Might need to format here
gen.writeString(dateTime.toString());
}
}
Then you just need to add annotation to all the State classes, and not
change the type.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]