You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Kalle Niemitalo (Jira)" <ji...@apache.org> on 2022/07/03 13:40:00 UTC

[jira] [Commented] (AVRO-3078) C#: Logical type 'local-timestamp-millis'

    [ https://issues.apache.org/jira/browse/AVRO-3078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17561867#comment-17561867 ] 

Kalle Niemitalo commented on AVRO-3078:
---------------------------------------

I'd prefer if this were fixed or reverted before the 1.11.1 release, because if the library is released with incorrect time zone conversions and fixed later, it can cause an interoperability problem where parties receiving data that was encoded using the library need to know which version was used.

> C#: Logical type 'local-timestamp-millis'
> -----------------------------------------
>
>                 Key: AVRO-3078
>                 URL: https://issues.apache.org/jira/browse/AVRO-3078
>             Project: Apache Avro
>          Issue Type: Improvement
>          Components: csharp
>    Affects Versions: 1.10.2
>            Reporter: Vladimir Kralik
>            Assignee: Zoltan Csizmadia
>            Priority: Critical
>              Labels: pull-request-available
>             Fix For: 1.11.1, 1.12.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> * *as* a programmer
>  * *i want* to add support for logical type {{local-timestamp-millis}} for C# code generation
>  * *because* {{avrogen}} fails with 
> {code:bash}
> > dotnet tool install --global Apache.Avro.Tools --version 1.10.2
> > dotnet tool restore
> Tool 'apache.avro.tools' (version '1.10.2') was restored. Available commands: avrogen
> > dotnet avrogen -p ../thymus.avpr outdir
> Exception occurred. Logical type 'local-timestamp-millis' is not supported.
> {code}
> {code:java}
> {
>   "protocol" : "ThymusProtocol",
>   "namespace" : "model.thymus",
>   "types" : [ {
>        "type" : "record",
>         "name" : "TMVyk",
>         "namespace" : "model.thymus",
>         "fields" : [{
>               "name" : "cas",
>               "type" : {
>                   "type" : "long",
>                   "logicalType" : "local-timestamp-millis"
>               }
>             }]
>    } ],
>   "messages" : { }
> } 
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)