You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Marios Trivyzas (Jira)" <ji...@apache.org> on 2022/05/02 11:30:00 UTC
[jira] [Commented] (FLINK-27465) AvroRowDeserializationSchema.convertToTimestamp fails with negative nano seconds
[ https://issues.apache.org/jira/browse/FLINK-27465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17530685#comment-17530685 ]
Marios Trivyzas commented on FLINK-27465:
-----------------------------------------
Do you have an example?
As far as I know Avro doesn't currently support nanos (not even micros), only millis.
> AvroRowDeserializationSchema.convertToTimestamp fails with negative nano seconds
> --------------------------------------------------------------------------------
>
> Key: FLINK-27465
> URL: https://issues.apache.org/jira/browse/FLINK-27465
> Project: Flink
> Issue Type: Bug
> Components: Formats (JSON, Avro, Parquet, ORC, SequenceFile)
> Affects Versions: 1.15.0
> Reporter: Thomas Weise
> Assignee: Thomas Weise
> Priority: Major
>
> The issue is exposed due to time zone dependency in AvroRowDeSerializationSchemaTest.
>
> The root cause is that convertToTimestamp attempts to set negative value with java.sql.Timestamp.setNanos
--
This message was sent by Atlassian Jira
(v8.20.7#820007)