xiangfu0 commented on code in PR #20300:
URL: https://github.com/apache/pinot/pull/20300#discussion_r4648985508
##########
pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/index/openstruct/OpenStructSparseBlobReader.java:
##########
@@ -59,7 +62,38 @@ public JsonNode getValue(int docId, String key, @Nullable
ForwardIndexReaderCont
// TODO: an N-key projection parses each doc N times.
FastJsonPathExtractor fixes this in one pass,
// but only across a batch of paths — this single-key signature has to
change first.
JsonNode blob = parseBlob(docId, context);
- return blob == null ? null : blob.get(key);
+ return blob == null ? null : resolve(blob, key);
Review Comment:
Fixed in 8e0735c2a3. A key with no recorded multi-value maximum now computes
and caches its maximum when a caller asks for a buffer size. The nested `[1,2]`
case reports 2 and reads both elements into that buffer. Looking up the key no
longer triggers the size scan.
--
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]