avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Resch <markus.re...@adtech.de>
Subject Using optional fields (nullable unions) with the C-API
Date Mon, 21 Nov 2011 17:26:19 GMT
Hey avro users,

I'm using a record like this

{
    "type" : "record", 
    "name" : "TestPacket", 
    "fields" : [
        { "name" : "Id" , "type" : "int"},
        { "name" : "Value" , "type" : ["string","null"]}
	]
}

But if I just not write anything to the 'Value' filed,
avro_writer_memory() refuses to validate it. How do you normally use the
optional fields with the C-API?

Regards,

	Markus


-- 
Markus Resch
Software Developer 
P: +49 6103-5715-0 | F: +49 6103-5715-111 |
ADTECH AG | Robert-Bosch-Str. 32 | 63303 Dreieich | Germany
www.adtech.com<http://www.adtech.com/>


ADTECH | A Division of Advertising.com Group - Residence of the Company:
Dreieich, Germany - Registration Office Offenbach HRB 34657
Chairman of the Board: Erhard Neumann - Chairman of the Supervisory
Board: Ned Brody

This message contains privileged and confidential information. Any
dissemination, distribution, copying or other use of this
message or any of its content (data, prices...) to any third parties may
only occur with ADTECH's prior consent.


Mime
View raw message