richardstartin commented on a change in pull request #7820:
URL: https://github.com/apache/pinot/pull/7820#discussion_r762855592



##########
File path: 
pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/JsonExtractScalarTransformFunction.java
##########
@@ -94,6 +95,7 @@ public void init(List<TransformFunction> arguments, 
Map<String, DataSource> data
         _defaultValue = dataType.convert(((LiteralTransformFunction) 
arguments.get(3)).getLiteral());
       }
       _resultMetadata = new TransformResultMetadata(dataType, isSingleValue, 
false);
+      _jsonPathEvaluator = JsonPathEvaluators.create(_jsonPathString, 
_defaultValue);

Review comment:
       This is intentionally like this. A plugin may not be implemented in 
terms of the JsonPath library, and even if it is, the compilation was cached 
across all segments in #7826




-- 
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: commits-unsubscr...@pinot.apache.org

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

Reply via email to