mkusnir opened a new pull request #2169: URL: https://github.com/apache/drill/pull/2169
# [DRILL-7821](https://issues.apache.org/jira/browse/DRILL-7821): Treat Empty String as NULL in JSON Reader ## Description Added try-catch to handleString() in JsonReader to allow empty string "" to be parsed as empty object {} when object type is inferred from earlier keys, as discussed with @cgivre ## Documentation Drill can now handle the scenario described without the use of `exec.enable.union.type=true`, perhaps user documentation should be updated to mention the limitation occurring when "" appears before {}, either a dummy entry must be added to the start of the JSON (so that the correct types are inferred) or the union type must be used ## Testing Queried sample JSON files to verify new behavior, Maven tests ---------------------------------------------------------------- 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]
