[
https://issues.apache.org/jira/browse/FLINK-17091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul Lin updated FLINK-17091:
-----------------------------
Description:
AvroRow(De)SerializationSchema doesn't know how to convert the new physical
classes of Timestamp (eg. java.time.Date) to/from Avro's int/long based
timestamp. When encountering objects of the new physical classes,
AvroRow(De)SerializationSchema just ignores them and passes them to Avro's
GenericDatumWriter, which leads to ClassCastException thrown by
GenericDatumWriter. See
[AvroRowSerializationSchema|https://github.com/apache/flink/blob/master/flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/AvroRowSerializationSchema.java#L251].
was:
AvroRow(De)SerializationSchema doesn't know how to convert the new physical
classes of Timestamp (eg. java.time.Date) to/from Avro's int/long based
timestamp. When encountering objects of the new physical classes,
AvroRow(De)SerializationSchema just ignores them and passes them to Avro's
GenericDatumWriter, which leads to ClassCastException thrown by
GenericDatumWriter. See
[[AvroRowSerializationSchema|https://github.com/apache/flink/blob/master/flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/AvroRowSerializationSchema.java#L251]|[https://github.com/apache/flink/blob/master/flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/AvroRowSerializationSchema.java#L251]].
> AvroRow(De)SerializationSchema doesn't support new Timestamp conversion
> classes
> -------------------------------------------------------------------------------
>
> Key: FLINK-17091
> URL: https://issues.apache.org/jira/browse/FLINK-17091
> Project: Flink
> Issue Type: Bug
> Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile)
> Affects Versions: 1.10.0
> Reporter: Paul Lin
> Priority: Major
>
> AvroRow(De)SerializationSchema doesn't know how to convert the new physical
> classes of Timestamp (eg. java.time.Date) to/from Avro's int/long based
> timestamp. When encountering objects of the new physical classes,
> AvroRow(De)SerializationSchema just ignores them and passes them to Avro's
> GenericDatumWriter, which leads to ClassCastException thrown by
> GenericDatumWriter. See
> [AvroRowSerializationSchema|https://github.com/apache/flink/blob/master/flink-formats/flink-avro/src/main/java/org/apache/flink/formats/avro/AvroRowSerializationSchema.java#L251].
>
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)