You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Jeremie Pelletier (JIRA)" <ji...@apache.org> on 2018/10/04 16:59:00 UTC

[jira] [Created] (AVRO-2237) Fixed type mismatch between Generic Datum Reader/Writer and Convertion

Jeremie Pelletier created AVRO-2237:
---------------------------------------

             Summary: Fixed type mismatch between Generic Datum Reader/Writer and Convertion
                 Key: AVRO-2237
                 URL: https://issues.apache.org/jira/browse/AVRO-2237
             Project: Avro
          Issue Type: Bug
          Components: java
    Affects Versions: 1.8.2
            Reporter: Jeremie Pelletier


Both the GenericDatumWriter and GenericDatumReader allow fixed values to be of type "Object", as shown here:

[https://github.com/apache/avro/blob/54a79769987d78384899062b59d413412c577de3/lang/java/avro/src/main/java/org/apache/avro/generic/GenericDatumWriter.java#L276]

However the Conversion class only accepts "GenericFixed":

[https://github.com/apache/avro/blob/master/lang/java/avro/src/main/java/org/apache/avro/Conversion.java#L104]


This prevents using "byte[]" as the fixed type while keeping support for logical types at the same time.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)