Description
I made the following change to the unittest.cc, adding a two dimensional array to the buildSchema() test:
ArraySchema array = ArraySchema(DoubleSchema()); const std::string s("myarray"); record.addField(s, array); ArraySchema array2 = ArraySchema(ArraySchema(DoubleSchema())); const std::string s2("my2dimarray"); record.addField(s2, array2);
It creates the following JSON schema output:
{ "name": "myarray", "type": { "type": "array", "items": "double" } }, { "name": "my2dimarray", "type": { "type": "array", "items": "double" } }
Even tough I would expect the following output for the two dimensional case:
{ "name": "my2dimarray", "type": { "type": "array", "items": { "type": "array", "items": "double" } } }
Attachments
Issue Links
- links to