Skip to content

Commit

Permalink
Document DICTIONARY AND RLE encodings in SerializedPage Wire Format
Browse files Browse the repository at this point in the history
  • Loading branch information
mbasmanova committed Sep 22, 2023
1 parent 6eef062 commit 9ed0fc2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions presto-docs/src/main/sphinx/develop/serialized-page.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,20 @@ from the null flags.
.. image:: serialized-page-row-column.png
:width: 600

DICTIONARY Encoding
-------------------

* Number of rows - 4 bytes
* Dictionary values column. This column itself is a serialized block whose encoding can be any of the encodings mentioned in this document.
* Indices - number of rows * 4 bytes; 4 bytes per index
* Dictionary ID - 24 bytes

RLE Encoding
------------

* Number of rows - 4 bytes
* Single-row constant value column

Additional Usage
----------------

Expand Down

0 comments on commit 9ed0fc2

Please sign in to comment.