[
https://issues.apache.org/jira/browse/AVRO-1478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13931977#comment-13931977
]
George Baxter commented on AVRO-1478:
-------------------------------------
The ProtobufData support takes the protocol buffer 'outer' class. I'm not sure
what the java code uses the namespace for, but either the $ could be assumed or
something like URL-encoded if it's a required piece of information used during
deserialization or what-not. If it's simply to avoid naming collisions, then
your suggest would probably be sufficient.
> protobuf namespaces causing problem for avro c++ reader
> -------------------------------------------------------
>
> Key: AVRO-1478
> URL: https://issues.apache.org/jira/browse/AVRO-1478
> Project: Avro
> Issue Type: Bug
> Reporter: George Baxter
>
> Utilizing the ProtobufData functionality to generate avro output, we run into
> a complication when consuming this output using the c++ based avro reader.
> Seems it doesn't much like the '$' of a nesting outer class that is inherent
> with protocol buffers in java.
> Exception opening file for read:Invalid namespace:
> com.xxx.base.message.MessageProtos$
> in
> avro::DataFileReader<avro::GenericDatum>* file_reader;
> file_reader = new
> avro::DataFileReader<avro::GenericDatum>(file_name.c_str());]
--
This message was sent by Atlassian JIRA
(v6.2#6252)