avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Check Peck <comptechge...@gmail.com>
Subject Not able to load avro schema fully with all its contents
Date Mon, 18 May 2015 19:54:50 GMT
I am working with Apache Avro in C++ and I am trying to load avro schema by
using Avro C++ library. Everything works fine without any issues, only
problem is - I have few "doc" in my Avro schema which is not getting shown
at all in my AvroSchema when I try to load it and also print it out.

    DataSchema_ptr schema_data(new DataSchema());
    schema_data->m_schema = load(avro_schema_file_name.c_str());
    const avro::NodePtr node_data_ptr = schema_data->m_schema.root();
    if (node_data_ptr && node_data_ptr->hasName())
    {
        // is there any problem with this node_data_ptr usage here?
        schema_data->m_name = node_data_ptr->name().fullname().c_str();

        // this line prints out whole AVRO but it doesn't have doc which is
there in my AVRO
        cout<<"File String : " << schema_data->to_string() << endl;
    }

Here "m_schema" is "avro::ValidSchema m_schema;"

Can anyone help me with this. In general I don't see my doc which I have in
Avro Schema getting shown when I print it out.

Mime
View raw message