[
https://issues.apache.org/jira/browse/AVRO-1747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14998909#comment-14998909
]
Ryan Blue commented on AVRO-1747:
---------------------------------
Thanks!
Unfortunately, we can't use the MD5 implementation unless we have license terms
for it. Hopefully it's not too bad to disable MD5 for browser users.
Nice work with the addition of logical types! One thing I noticed though is
that the example doesn't follow the specification for date. I think the
confusion comes from some languages (like Java) using a Date object to
represent what is really a timestamp: a date and a time. The "date" type
annotation in the spec is for a [day that is independent of
time|https://github.com/apache/avro/blob/trunk/doc/src/content/xdocs/spec.xml#L1416],
represented as the number of days after the Unix epoch, 1 January 1970. What
you show in the documentation you linked to should probably be timestamp
instead of date. This definitely highlights the need for compatibility tests
across the implementations, but in the mean time you might find the Java [time
conversions|https://github.com/apache/avro/blob/trunk/lang/java/avro/src/main/java/org/apache/avro/data/TimeConversions.java]
and [other
conversions|https://github.com/apache/avro/blob/trunk/lang/java/avro/src/main/java/org/apache/avro/Conversions.java]
useful.
> JavaScript implementation
> -------------------------
>
> Key: AVRO-1747
> URL: https://issues.apache.org/jira/browse/AVRO-1747
> Project: Avro
> Issue Type: Improvement
> Components: javascript
> Reporter: Matthieu Monsch
> Attachments: AVRO-1747.patch, AVRO-1747.patch
>
>
> Hello,
> I'm not sure if there is still interest in a JavaScript implementation of the
> Avro spec, or if this is the right place for this message (apologies if not),
> but in case it's useful here is one: https://github.com/mtth/avsc
> It's pretty fast, fully featured aside from protocols (AFAIK), and runs in
> the browser.
> Disclaimer: I wrote this library. (I initially searched around for existing
> implementations, and even saw a few tickets on this board about JavaScript
> decoders, but couldn't find one to support the schemas I have to process.)
> Best,
> -Matthieu
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)