Skip to content

Improve DictionaryBlock#getLogicalSizeInBytes#13203

Merged
raunaqmorarka merged 1 commit intotrinodb:masterfrom
raunaqmorarka:dict-logical-size
Jul 18, 2022
Merged

Improve DictionaryBlock#getLogicalSizeInBytes#13203
raunaqmorarka merged 1 commit intotrinodb:masterfrom
raunaqmorarka:dict-logical-size

Conversation

@raunaqmorarka
Copy link
Member

Description

When fixedSizeInBytesPerPosition is known, it can be
used to compute logical size of DictionaryBlock cheaply.
Logical size for page is computed frequently by orc/parquet writers.

Is this change a fix, improvement, new feature, refactoring, or other?

improvement

Is this a change to the core query engine, a connector, client library, or the SPI interfaces? (be specific)

core query engine

How would you describe this change to a non-technical end user or system administrator?

Improved write performance when the writer works on dictionary encoded data.

Documentation

(x) 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

(x) No release notes entries required.
( ) Release notes entries required with the following suggested text:

@cla-bot cla-bot bot added the cla-signed label Jul 16, 2022
@raunaqmorarka raunaqmorarka marked this pull request as ready for review July 16, 2022 14:24
When fixedSizeInBytesPerPosition is known, it can be used to compute
logical size of DictionaryBlock cheaply.
Logical size for page is computed frequently by orc/parquet writers.
@raunaqmorarka raunaqmorarka merged commit c7d3c75 into trinodb:master Jul 18, 2022
@raunaqmorarka raunaqmorarka deleted the dict-logical-size branch July 18, 2022 15:44
@github-actions github-actions bot added this to the 391 milestone Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants