showuon commented on a change in pull request #11227: URL: https://github.com/apache/kafka/pull/11227#discussion_r691055719
########## File path: streams/src/main/java/org/apache/kafka/streams/state/internals/SegmentIterator.java ########## @@ -74,7 +74,7 @@ public boolean hasNext() { close(); currentSegment = segments.next(); try { - if (from == null || to == null) { + if (from == null && to == null) { if (forward) { currentIterator = currentSegment.all(); Review comment: side fix: the `all` case should be `from == null && to == null`. Otherwise, call `range` method, which is already supported null range query in KIP-763 -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org