diff --git a/core/trino-main/src/main/java/io/trino/operator/output/PositionsAppenderPageBuilder.java b/core/trino-main/src/main/java/io/trino/operator/output/PositionsAppenderPageBuilder.java index 7c232be59797..f90db9682c26 100644 --- a/core/trino-main/src/main/java/io/trino/operator/output/PositionsAppenderPageBuilder.java +++ b/core/trino-main/src/main/java/io/trino/operator/output/PositionsAppenderPageBuilder.java @@ -98,10 +98,6 @@ public boolean isEmpty() public Page build() { - if (channelAppenders.length == 0) { - return new Page(declaredPositions); - } - Block[] blocks = new Block[channelAppenders.length]; for (int i = 0; i < blocks.length; i++) { blocks[i] = channelAppenders[i].build();