amrishlal commented on a change in pull request #6651: URL: https://github.com/apache/incubator-pinot/pull/6651#discussion_r590596002
########## File path: pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/JsonExtractScalarTransformFunction.java ########## @@ -131,7 +131,7 @@ public TransformResultMetadata getResultMetadata() { final String[] stringValuesSV = _jsonFieldTransformFunction.transformToStringValuesSV(projectionBlock); final int[] results = new int[projectionBlock.getNumDocs()]; for (int i = 0; i < results.length; i++) { - Object read = JsonPath.read(stringValuesSV[i], _jsonPath); + Object read = JsonPath.using(JSON_PARSER_CONFIG).parse(stringValuesSV[i]).read(_jsonPath); Review comment: I have added the constant for now, although at some point in future it would be good to move towards having a function object cache in `TransformationFunctionFactory`. ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org