hanbj commented on code in PR #14268:
URL: https://github.com/apache/lucene/pull/14268#discussion_r2020443439


##########
lucene/core/src/java/org/apache/lucene/search/PointInSetQuery.java:
##########
@@ -108,6 +110,8 @@ protected PointInSetQuery(String field, int numDims, int 
bytesPerDim, Stream pac
       }
       if (previous == null) {
         previous = new BytesRefBuilder();
+        lowerPoint = new byte[bytesPerDim * numDims];
+        System.arraycopy(current.bytes, current.offset, lowerPoint, 0, 
lowerPoint.length);

Review Comment:
   You're right, usually the length of the copied array is used.



-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to