Re: New website

2021-10-29 Thread Dan Schmitt
If you want content suggestions, a list of things/tools/links that ingest Avro (python, map reduce, drill, Azure data factory, Aws Athenea/Redshift/Glue, Spark, Google Cloud/BigQuery, Hadoop, Kafka etc.) helps make the case that your avro producing whatever will have wide support. On Fri, Oct 29,

Re: Gigantic list of Avro spec issues

2022-02-12 Thread Dan Schmitt
Generally the "I'm going to lump all my complaints into one big bug" is a good way to get them ignored. I'll skip "the design is wrong and it should change because I don't like it" and cite "it's used everywhere with lots of implementations so you can't change it in an incompatible way". I'll ski

Re: Gigantic list of Avro spec issues

2022-02-13 Thread Dan Schmitt
owing it's a real issue. On Sat, Feb 12, 2022 at 6:55 PM Dan Schmitt wrote: > > Generally the "I'm going to lump all my complaints into > one big bug" is a good way to get them ignored. > > I'll skip "the design is wrong and it should change because

C++ interface, json, schema, immuatability

2017-07-06 Thread Dan Schmitt
I was hoping I wasn't doing something complex, but I may be wrong. My goal state is to allow callers to send arbitrary avro buffers to me, and then merge them into a schema. I seem to be stuck in that the exposed methods to extract the schema from the buffer/stream etc result in a ValidSchema, wh

Re: Re-using record & enum types in single schema file

2017-07-07 Thread Dan Schmitt
Try the protocol/idl stuff; docs are at: https://avro.apache.org/docs/1.8.2/idl.html The idl stuff is much nicer about syntax, does the merging (only declares the enums where they are used, doesn't drop them in a global) and will create schemas for each compound avro type. Sam's suggestion works

Re: Deep polymorphic type support

2017-09-08 Thread Dan Schmitt
Sounds like a job for a Union for payload. And if the polymorphic payload is avro serialized you don't have to know the schema ahead of time, you just need a way to merge the new payload schema into the union as you get it (so you can push the schema responsibility to the client code giving you th

Re: Deep polymorphic type support

2017-09-08 Thread Dan Schmitt
you could flatten things to just Message[Alarm], but > this weakens the domain model. > > Can you think of a way to use Union types to represent marker traits? My > understanding is Unions can't immediately contain other Unions (i.e. like > Event -> PayloadKind). > > Greg >

Re: how to do non-optional field in nested object?

2017-11-27 Thread Dan Schmitt
"name": "B", "type": ["null", { The [] union lets you do null or a BRecord, your JSON does null. Pull the null from the union and it will require the C. On Mon, Nov 27, 2017 at 9:00 AM, Martin Mucha wrote: > Hi, > > I have this avro schema: > > { > "name" : "ARecord", > "type" :

Re: how to do non-optional field in nested object?

2017-11-27 Thread Dan Schmitt
type" : "record", > "namespace" : "A", > "fields" : [ > {"name": "id", "type": "string" }, > { > "name": "B", > "type": { > "type": "record

Re: how to do non-optional field in nested object?

2017-11-27 Thread Dan Schmitt
The top level object in all the examples is a record (of which you can have 0 or more.) So, right now, even the top level is failing the spec: IV) valid (0 ARecords): { } V) valid (2 ARecords): { "id": "...", "B": { "C": "..." } } , "id": "...", "B": { "C": "..." } } On Mon, N

Re: how to do non-optional field in nested object?

2017-11-27 Thread Dan Schmitt
ct? > > > Btw. what do you use to validate JSON using avro? I used avro-utils.jar > executed from command line, which proved as incapable of deserializing & > validating optional fields if they are set (if optional field is set, I have > to pass value in json like: {"string

Re: GenericRecord.toString produces invalid JSON for logical types

2018-08-23 Thread Dan Schmitt
On Thu, Aug 23, 2018 at 9:09 PM, kant kodali wrote: > // Since these types are not quoted and produce a malformed > JSON string, quote it here. > if (datum instanceof java.sql.Timestamp || datum instanceof > java.sql.Time || datum instanceof java.sql.Date) { >

Re: undefined reference to `boost::iostreams::zlib::default_compression'

2019-04-03 Thread Dan Schmitt
I would check that the link line that CMake is generating has what you expect (-l and -L) and that the parameters to your boost build included the iostreams/zlib options. (If I were remotely debugging, command line for bjam, and verbose cmake out.) On Wed, Apr 3, 2019 at 1:27 PM R S wrote: > > I

Re: Accessing default value in schema

2019-11-19 Thread Dan Schmitt
It can't tell from your use what type to return/cast the value to so its failing. default_value.value(); will try to do it as an int64_t to match the long. Alternatively you should be able to do int64_t value = default_value.value(); and it can guess the type there. I suspect your pro

Schema modification with 1.9.1 Java api

2020-01-14 Thread Dan Schmitt
Background: I have devices generating avro files and throwing them at S3. The S3 consumers want to push some more data into them so they have a lambda that does a copy/transform to push the data in. For some reason they wrote their initial code with the 1.0 release of Avro, and added fields to the

Re: avro-c error: "Datum too large for file block size"

2020-01-16 Thread Dan Schmitt
Only difference I can see is the null default/union possibly not being handled well by avro_record_set or avro_record(schema) Without reading the source I'd expect avro_record(schema) to default the default union values to null leading to some sort of let's keep reading this memory issue because w

Re:

2020-10-13 Thread Dan Schmitt
https://www.youtube.com/watch?v=Aq_1l316ow8 https://avro.apache.org/mailing_lists.html On Tue, Oct 13, 2020 at 7:19 AM Anubhav Siddharth wrote: > > Unsubscribe