This is an automated email from the ASF dual-hosted git repository.

jackie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new d447fcfa4f fix json_extract_index out of bounds case (#13479)
d447fcfa4f is described below

commit d447fcfa4feb25db2a3428cecc7dc5361b2f5b55
Author: Christopher Peck <[email protected]>
AuthorDate: Fri Jun 28 16:46:46 2024 -0700

    fix json_extract_index out of bounds case (#13479)
---
 .../operator/transform/function/JsonExtractIndexTransformFunction.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/JsonExtractIndexTransformFunction.java
 
b/pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/JsonExtractIndexTransformFunction.java
index ffc835e7cb..c7bff50334 100644
--- 
a/pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/JsonExtractIndexTransformFunction.java
+++ 
b/pinot-core/src/main/java/org/apache/pinot/core/operator/transform/function/JsonExtractIndexTransformFunction.java
@@ -150,7 +150,7 @@ public class JsonExtractIndexTransformFunction extends 
BaseTransformFunction {
     String[] valuesFromIndex = 
_jsonIndexReader.getValuesSV(valueBlock.getDocIds(), valueBlock.getNumDocs(),
         getValueToMatchingDocsMap(), false);
     for (int i = 0; i < numDocs; i++) {
-      String value = valuesFromIndex[inputDocIds[i]];
+      String value = valuesFromIndex[i];
       if (value == null) {
         if (_defaultValue != null) {
           _intValuesSV[i] = (int) _defaultValue;


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

Reply via email to