nizhikov commented on code in PR #11816: URL: https://github.com/apache/ignite/pull/11816#discussion_r1922713778
########## modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/inline/InlineTreeFilterClosure.java: ########## @@ -56,12 +60,20 @@ public InlineTreeFilterClosure(IndexingQueryCacheFilter cacheFilter, if (!val) return false; - if (rowFilter != null) + if (rowFilter != null) { val = rowFilter.apply(tree, io, pageAddr, idx); + lastRow = rowFilter.lastRow(); + } + return val; } + /** {@inheritDoc} */ + @Override public @Nullable IndexRow lastRow() { + return lastRow; Review Comment: Do we really need a field here? Can we use `rowFilter == null ? null : rowFilter.lastRow()` here? -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org