Skip to content

Commit

Permalink
Simplify ORC UUID all nulls column reader
Browse files Browse the repository at this point in the history
  • Loading branch information
dain committed Nov 6, 2023
1 parent 70cf22d commit 9853386
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import static io.trino.orc.metadata.Stream.StreamKind.PRESENT;
import static io.trino.orc.stream.MissingInputStreamSource.missingStreamSource;
import static io.trino.spi.StandardErrorCode.GENERIC_INTERNAL_ERROR;
import static io.trino.spi.type.UuidType.UUID;
import static java.lang.Math.toIntExact;
import static java.lang.String.format;
import static java.util.Objects.requireNonNull;
Expand Down Expand Up @@ -256,7 +257,7 @@ private long[] readNonNullLongs(int valueCount)

private Block createAllNullsBlock()
{
return RunLengthEncodedBlock.create(new Int128ArrayBlock(1, Optional.of(new boolean[] {true}), new long[2]), nextBatchSize);
return RunLengthEncodedBlock.create(UUID, null, nextBatchSize);
}

private void openRowGroup()
Expand Down

0 comments on commit 9853386

Please sign in to comment.