-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Support ISO 8601 Duration type: https://en.m.wikipedia.org/wiki/ISO_8601#Durations
In Avro, this is supported as built in logical type: https://avro.apache.org/docs/1.10.2/spec.html#Duration
Few notes:
- Avro's durations accepts months, days and milliseconds.
- java.util.Duration accepts the ISO format
PnDTnHnMn.nS(notice no months or years) - java.util.Period accepts the ISO format
PnYnMnD(notice no hours, min, seconds, etc)
So if we wanna support a full ISO8601 duration format (like PnYnMnDTnHnMnS) we can use:
- joda time Period can accommodate years and month: https://www.joda.org/joda-time/userguide.html#Periods
- (will look into jackson too)
Also Avro doesn't have the Duration logical type in their the API impl (although it is documented since Avro 2.8)
Metadata
Metadata
Assignees
Labels
No labels