Skip to content

PARQUET-2241: Update wording of BYTE_STREAM_SPLIT encoding - #192

Merged
shangxinli merged 1 commit into
apache:masterfrom
wgtmac:byte_stream_split
Feb 10, 2023
Merged

shangxinli merged 1 commit into
apache:masterfrom
wgtmac:byte_stream_split

Conversation

@wgtmac

@wgtmac wgtmac commented Feb 10, 2023

Copy link
Copy Markdown
Member

Propose to explicitly state that no padding is allowed within a data page. This makes it easier for BYTE_STREAM_SPLIT decoder to decode page with nulls. In this way, it can simply get the number of encoded values by total_length_encoded_stream / K (4 for float and 8 for double). Otherwise, it has to decode def/rep levels to get exact number of non-null values.

@wgtmac

wgtmac commented Feb 10, 2023

Copy link
Copy Markdown
Member Author

@pitrou

pitrou commented Feb 10, 2023

Copy link
Copy Markdown
Member

cc @wjones127

@mapleFU

mapleFU commented Feb 10, 2023

Copy link
Copy Markdown
Member

I think should we check that no more padding is added in all impl? At least, seems C++, Rust, parquet-mr didn't padding at the end of data.

@emkornfield

Copy link
Copy Markdown
Contributor

Seems OK to me.

@shangxinli
shangxinli merged commit 230711f into apache:master Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants