siddharthteotia commented on code in PR #9004:
URL: https://github.com/apache/pinot/pull/9004#discussion_r916351420


##########
pinot-core/src/main/java/org/apache/pinot/core/common/evaluators/DefaultJsonPathEvaluator.java:
##########
@@ -90,7 +90,7 @@ public <T extends ForwardIndexReaderContext> void 
evaluateBlock(int[] docIds, in
         }
       }
     } else {
-      switch (reader.getValueType()) {
+      switch (reader.getStoredType()) {

Review Comment:
   Checked the code in `DefaultIndexReaderProvider`. It correctly uses 
`storedType` to instantiate forward index reader and then in the constructor of 
the actual reader, it passes `storedType` even though the constructor says 
`valueType`. So, this is another reason why this cleanup / rename is good. This 
is also why no tests failed because of this change.



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