Since JSON data input can be very diversified, and Drill, so far, accepts only tuples defined in one mongimport format, it would be useful to have this clearly spelled out in the documentation.
This improvement to the documentation should stress:
- The accepted JSON input format (single Objects describeing tuples, every one of them in a single line, with no separator between lines);
- The homogeneous Arrays constraint: only elements of the same type are accepted in a JSON array in Drill;
- The need to address a single element of a JSON array in a Drill SQL query: SELECT foo FROM bar.json is accepted, SELECT foo FROM bar.json is not