-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Hi! Thank you for the library, it's terribly useful (finally we can stop using JSON ;-))
I was wondering if logicalType property is supported - https://avro.apache.org/docs/1.8.0/spec.html#Logical+Types
From my quick experiments it looks like they don't work, or I'm simply doing something wrong:
(require '[abracad.avro :as avro])
(def schema
(avro/parse-schema
{:type :record
:name "Thing"
:fields [{:name "name", :type :string}
{:name "timestamp" :logicalType "date" :type :int}]}))
(def ex
{ :name "Foo" :timestamp 1491306685 })
(->> (avro/binary-encoded schema ex)
(avro/decode schema))
;; => {:name "Foo", :timestamp 1491306685}
if it's not supported, I'm happy to add support but I'd need a bit of help as to where should I start 👍
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels