You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Douglas Creager (JIRA)" <ji...@apache.org> on 2014/03/12 14:53:43 UTC
[jira] [Commented] (AVRO-1478) protobuf namespaces causing problem
for avro c++ reader
[ https://issues.apache.org/jira/browse/AVRO-1478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13931769#comment-13931769 ]
Douglas Creager commented on AVRO-1478:
---------------------------------------
I don't have any experience with ProtobufData, but the [Avro spec|http://avro.apache.org/docs/current/spec.html#Names] doesn't allow `$` in a name or any of the portions of a namespace. Is it possible / easy to make ProtobufData replace the `$` with a `.` or `_`, so that it produces a valid Avro name?
> 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)