Github user jacques-n commented on a diff in the pull request:
https://github.com/apache/drill/pull/207#discussion_r43472821
--- Diff:
exec/java-exec/src/main/java/org/apache/drill/exec/vector/complex/fn/JsonReader.java
---
@@ -275,83 +275,86 @@ private void consumeEntireNextValue() throws
IOException {
private void writeData(MapWriter map, FieldSelection selection, boolean
moveForward) throws IOException {
//
map.start();
- outside: while (true) {
-
- JsonToken t;
- if(moveForward){
- t = parser.nextToken();
- }else{
- t = parser.getCurrentToken();
- moveForward = true;
- }
+ try {
--- End diff --
Is the only thing that is different here is that you ensure map.end() in a
finally clause?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---