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



##########
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> 
exprs)
+  {
+    String[] exprsArray = exprs.toArray(new String[0]);

Review comment:
       Why do we need to get the string array first? Can't we use the `exprs` 
object directly in the loop below?




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