Produce RunLengthEncodedBlock in VariableWidthBlockBuilder when all values are null#12043
Conversation
Or should the caller be responsible to do this instead? cc @dain |
It's already there for most of |
core/trino-spi/src/test/java/io/trino/spi/block/TestVariableWidthBlockBuilder.java
Outdated
Show resolved
Hide resolved
024f412 to
936a885
Compare
There was a problem hiding this comment.
getRegion doesn't really copy anything.
Maybe just inline these two test methods and call it, testBuilderProducesNullRleForNullRows
There was a problem hiding this comment.
ok, i merged the methods into testBuilderProducesNullRleForNullRows
936a885 to
62d6a8a
Compare
62d6a8a to
e947ea6
Compare
|
|
Description
Add support in VariableWidthBlockBuilder for producing RunLengthEncodedBlock if all positions are null.
improvement
only VariableWidthBlockBuilder class
Related issues, pull requests, and links
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: