Skip to content

Commit 5bdd75d

Browse files
committed
Avoid recording page loading time in projection profiling
1 parent bc52393 commit 5bdd75d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/trino-main/src/main/java/io/trino/operator/project/PageProcessor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,9 @@ private ProcessBatchResult processBatch(int batchSize)
320320
blocks[i] = previouslyComputedResults[i].getRegion(0, batchSize);
321321
}
322322
else {
323+
SourcePage inputChannelsSourcePage = projection.getInputChannels().getInputChannels(page);
323324
expressionProfiler.start();
324-
Block result = projection.project(session, projection.getInputChannels().getInputChannels(page), positionsBatch);
325+
Block result = projection.project(session, inputChannelsSourcePage, positionsBatch);
325326
long projectionTimeNanos = expressionProfiler.stop(positionsBatch.size());
326327
metrics.recordProjectionTime(projectionTimeNanos);
327328

0 commit comments

Comments
 (0)