ygerzhedovich commented on code in PR #1501:
URL: https://github.com/apache/ignite-3/pull/1501#discussion_r1087616189
##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/engine/exec/rel/IndexScanNode.java:
##########
@@ -117,19 +124,21 @@ protected Publisher<RowT> scan() {
}
private Publisher<RowT> indexPublisher(int[] parts, @Nullable
RangeCondition<RowT> cond) {
- Iterator<Publisher<? extends RowT>> it = new TransformingIterator<>(
- Arrays.stream(parts).iterator(),
- part -> partitionPublisher(part, cond)
- );
+ boolean roTx = context().transactionTime() != null;
+ List<Publisher<? extends RowT>> publishers = new
ArrayList<>(parts.length);
+
+ for (int i = 0; i < parts.length; i++) {
+ publishers.add(partitionPublisher(parts[i], roTx ? -1 : terms[i],
cond));
Review Comment:
the change removed the lazy opening of cursors
--
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]