Produce RunLengthEncodedBlock in RowBlockBuilder when all values are null#12044
Conversation
6ec8e83 to
68759c3
Compare
There was a problem hiding this comment.
IMO it's easier to see the reason for this change if it's part of the commit that overrides this method.
There was a problem hiding this comment.
I would remove this change for now as it causes test failure and create an issue in Github that SPI checker shouldn't fail for such case
There was a problem hiding this comment.
move this before:
Block[] fieldBlocks = new Block[numFields];
for (int i = 0; i < numFields; i++) {
fieldBlocks[i] = fieldBlockBuilders[i].build();
}
and just call:
if (!hasNonNullRow) {
return nullRle(positionCount);
}
core/trino-spi/src/main/java/io/trino/spi/block/RowBlockBuilder.java
Outdated
Show resolved
Hide resolved
core/trino-spi/src/main/java/io/trino/spi/block/RowBlockBuilder.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
renamed to testBuilderProducesNullRleForNullRows
core/trino-spi/src/test/java/io/trino/spi/block/TestRowBlockBuilder.java
Outdated
Show resolved
Hide resolved
68759c3 to
c26528e
Compare
lukasz-stec
left a comment
There was a problem hiding this comment.
comments addressed
core/trino-spi/src/test/java/io/trino/spi/block/TestRowBlockBuilder.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
renamed to testBuilderProducesNullRleForNullRows
There was a problem hiding this comment.
IMO it's easier to see the reason for this change if it's part of the commit that overrides this method.
|
@lukasz-stec there are test failures |
|
It was not intended. |
There was a problem hiding this comment.
I would remove this change for now as it causes test failure and create an issue in Github that SPI checker shouldn't fail for such case
c26528e to
bd961fb
Compare
lukasz-stec
left a comment
There was a problem hiding this comment.
copyPositions removed due to SPI compatibility check failing
f192630 to
1db5a42
Compare
|
since #12062 is merged i rebased on the master and re-added |
Description
Add support in RowBlockBuilder for producing RunLengthEncodedBlock if all positions are null.
improvement
changes only in RowBlockBuilder, AbstractRowBlock classes in the trino-spi, not affecting API.
Related issues, pull requests, and links
Similar to #12043
Documentation
( ) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.
Release notes
( ) No release notes entries required.
( ) Release notes entries required with the following suggested text: