FrankChen021 commented on a change in pull request #12177:
URL: https://github.com/apache/druid/pull/12177#discussion_r817367169



##########
File path: 
core/src/main/java/org/apache/druid/java/util/common/parsers/JSONFlattenerMaker.java
##########
@@ -108,6 +108,22 @@ public Object getRootField(final JsonNode obj, final 
String key)
     }
   }
 
+  @Override
+  public Function<JsonNode, Object> makeJsonTreeExtractor(final List<String> 
nodes)
+  {
+    String[] keyNames = nodes.toArray(new String[0]);

Review comment:
       Why do we need to convert the nodes to a String array here?




-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to