You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Zoltan Csizmadia (Jira)" <ji...@apache.org> on 2022/03/29 12:00:00 UTC
[jira] [Created] (AVRO-3475) Enforce time-millis and time-micors specification
Zoltan Csizmadia created AVRO-3475:
--------------------------------------
Summary: Enforce time-millis and time-micors specification
Key: AVRO-3475
URL: https://issues.apache.org/jira/browse/AVRO-3475
Project: Apache Avro
Issue Type: Improvement
Components: csharp
Reporter: Zoltan Csizmadia
Fix For: 1.12.0
During fixing AVRO-3471, I noticed that negative in/long values or negative TimeSpan values are allowed for time-millis and time-micros. [https://avro.apache.org/docs/current/spec.html] states that, it is supposed to be the number of us/ms after midnight 00:00:00. The following TimSpan values do not cause any overflow exceptions:
"-00:00:00.001"
"-999999.00:00:00"
This change should throw exceptions in cases where the code has not thrown exceptions before, so it might make sense to introduce this change only in 1.12.0
--
This message was sent by Atlassian Jira
(v8.20.1#820001)