Re: Avro JSON Encoding

2024-04-25 Thread Jean-Baptiste Onofré
ssues. I can work on that early next week. > > Best Regards > Clemens > > -- > *Von:* Jean-Baptiste Onofré > *Gesendet:* Donnerstag, April 18, 2024 10:58 AM > *An:* Clemens Vasters > *Cc:* Jean-Baptiste Onofré ; user@avro.apache.org < > user@a

Re: Avro JSON Encoding

2024-04-24 Thread Clemens Vasters via user
n down into individual feature issues. I can work on that early next week. Best Regards Clemens Von: Jean-Baptiste Onofré Gesendet: Donnerstag, April 18, 2024 10:58 AM An: Clemens Vasters Cc: Jean-Baptiste Onofré ; user@avro.apache.org Betreff: Re: Avro JSON En

Re: Avro JSON Encoding

2024-04-23 Thread Oscar Westra van Holthe - Kind
sendet: Tuesday, April 23, 2024 1:10:16 PM > An: user@avro.apache.org > Betreff: Re: Avro JSON Encoding > > Sie erhalten nicht oft eine E-Mail von opw...@apache.org. Erfahren Sie, warum > dies wichtig ist <https://aka.ms/LearnAboutSenderIdentification> > Hi every

Re: Avro JSON Encoding

2024-04-23 Thread Clemens Vasters via user
Westra van Holthe - Kind Gesendet: Tuesday, April 23, 2024 1:10:16 PM An: user@avro.apache.org Betreff: Re: Avro JSON Encoding Sie erhalten nicht oft eine E-Mail von opw...@apache.org. Erfahren Sie, warum dies wichtig ist<https://aka.ms/LearnAboutSenderIdentification> Hi everyone, Having l

Re: Avro JSON Encoding

2024-04-23 Thread Oscar Westra van Holthe - Kind
at 11:58 AM Ryan Skraba <mailto:r...@skraba.com>> wrote: >> Hello! >> >> A bit tongue in cheek: the one advantage of the current Avro JSON >> encoding is that it drives users rapidly to prefer the binary >> encoding! In its current state, Avro isn

Re: Avro JSON Encoding

2024-04-19 Thread Andrew Otto
rg/wiki/Event_Platform/Schemas/Guidelines#No_union_types_/_No_null_values>*, etc. etc. On Fri, Apr 19, 2024 at 11:58 AM Ryan Skraba wrote: > Hello! > > A bit tongue in cheek: the one advantage of the current Avro JSON > encoding is that it drives users rapidly to prefer the bin

Re: Avro JSON Encoding

2024-04-19 Thread Clemens Vasters via user
t;https://aka.ms/o0ukef> Von: Ryan Skraba Gesendet: Friday, April 19, 2024 5:57:37 PM An: user@avro.apache.org Cc: Clemens Vasters Betreff: Re: Avro JSON Encoding [Sie erhalten nicht häufig E-Mails von r...@skraba.com. Weitere Informationen, warum dies wichtig is

Re: Avro JSON Encoding

2024-04-19 Thread Ryan Skraba
Hello! A bit tongue in cheek: the one advantage of the current Avro JSON encoding is that it drives users rapidly to prefer the binary encoding! In its current state, Avro isn't really a satisfactory toolkit for JSON interoperability, while it shines for binary interoperability. Using JSON

Re: Avro JSON Encoding

2024-04-18 Thread Clemens Vasters via user
quot;, "const": "cat" }, ... cat things .. ] }, { "type":"record", "fields": [ { "name": "typename", "displayname": "$type

Re: Avro JSON Encoding

2024-04-18 Thread Oscar Westra van Holthe - Kind
o it’s easy to mandate base64 for the field content in the > alternate mode. > > > > 2. Unions with Primitive Type Values and Enum Values > > - > > > > It’s common to express optionality in Avro Schema by creating a union with > the “null” type

RE: Avro JSON Encoding

2024-04-18 Thread Clemens Vasters via user
I literally do the “FWIW” here: https://github.com/clemensv/avrotize?tab=readme-ov-file#convert-json-schema-to-avro-schema From: Andrew Otto Sent: Thursday, April 18, 2024 2:24 PM To: user@avro.apache.org Cc: Clemens Vasters Subject: Re: Avro JSON Encoding Sie erhalten nicht oft eine E-Mail

Re: Avro JSON Encoding

2024-04-18 Thread Andrew Otto
gt;> >> >> The common way to encode binary in JSON is to use base64 encoding and >> that is widely and well supported in libraries. Base64 is 33% larger than >> plain bytes, the encoding chosen here is 500% (!) larger than plain bytes. >> >> >> >>

Re: Avro JSON Encoding

2024-04-18 Thread Jean-Baptiste Onofré
ril 18, 2024 10:17 AM > To: Clemens Vasters ; user@avro.apache.org > Subject: Re: Avro JSON Encoding > > > > Hi Clemens > > > > Thanks for the detailed email. > > > > Quick question : did you already create Jira about each improvements/issues ? > > >

RE: Avro JSON Encoding

2024-04-18 Thread Clemens Vasters via user
024 10:17 AM To: Clemens Vasters ; user@avro.apache.org Subject: Re: Avro JSON Encoding Hi Clemens Thanks for the detailed email. Quick question : did you already create Jira about each improvements/issues ? I will take the time to read asap. Thanks Regards JB Le jeu. 18 avr. 2024 à 09:12,

Re: Avro JSON Encoding

2024-04-18 Thread Jean-Baptiste Onofré
> > > 2. Unions with Primitive Type Values and Enum Values > > - > > > > It’s common to express optionality in Avro Schema by creating a union with > the “null” type, e.g. [“string”, “null”]. The Avro JSON Encoding opts to > encode such unions, l

Avro JSON Encoding

2024-04-18 Thread Clemens Vasters via user
s/resources/discriminator/#property-outside-of-the-object). What that means is that most existing JSON instances with ambiguous types will either use property discriminators or the implementation will rely on duck typing as JSON Schema does for validation. The Avro JSON Encoding approach is rare and