paul-rogers opened a new pull request #2016: DRILL-7631: Updates to the Json Structure Parser URL: https://github.com/apache/drill/pull/2016 # [DRILL-7631](https://issues.apache.org/jira/browse/DRILL-7631): Updates to the Json Structure Parser ## Description The JSON structure parser converts JSON tokens from the Jackson JSON parser into a structure consisting of values, arrays and objects. The structure parser handles the JSON aspects. An associated set of listeners converts JSON values to some other format (such as to vectors via the column writers.) This PR covers only the structure parser. Work to create a new JSON record reader using this parser revealed several required revisions: * Convert the various typed listener creation calls in the listener to a generic call that takes a `ValueDef` value description. * Add support to replace listeners as is needed when starting with an "unknown" field, which later resolves to some type, such as `Integer`. * Reorganized the code to build sub-parsers based on incoming JSON structure. Note that, at present, no code uses the JSON structure parser. That code will come in a later PR. ## Documentation None ## Testing Expanded an reran the associated unit tests. Moved the unit tests so that they are in the same package as the code.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
