avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Miller <alan.mill...@gmail.com>
Subject C-API schema
Date Mon, 27 Apr 2015 22:10:33 GMT
Is it possible to write custom meta-field with the C-API?

I tried this:
{
  "type" : "record",
  "name" : "MySchema",
  "namespace": "org.my",
  "aliases": ["Cerberus_address"],
  "doc": "MYSCHEMA_V1",
  "my.version": "v1",
  "fields" : [
    { "name": "name",  "type": "string"    }
}

And write a record with the C-API (v1.7.7) I only get this:

java -jar /opt/avro/avro-tools-1.7.7.jar getmeta test.avro
avro.codec null
avro.schema {"type":"record","name":"MySchema","namespace":"org.my","fields":[{"name":"name","type":{"type":"string"}]}]}

Alan

Mime
View raw message