You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Sean Timm (JIRA)" <ji...@apache.org> on 2016/11/10 21:36:58 UTC
[jira] [Created] (AVRO-1957) TimeConversions do not implement
getRecommendedSchema()
Sean Timm created AVRO-1957:
-------------------------------
Summary: TimeConversions do not implement getRecommendedSchema()
Key: AVRO-1957
URL: https://issues.apache.org/jira/browse/AVRO-1957
Project: Avro
Issue Type: Bug
Affects Versions: 1.8.1
Reporter: Sean Timm
org.apache.avro.data.TimeConversions.TimestampConversion and other date and time conversions do not implement getRecommendedSchema(). When trying to dynamically generate an Avro schema from a pojo that contains a DateTime object using ReflectData, I get an unsupported operation exception.
I think the implementation should be as simple as
{code}
@Override
public Schema getRecommendedSchema() {
return LogicalTypes.timestampMillis().addToSchema(Schema.create(Schema.Type.LONG));
}
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)