[ 
https://issues.apache.org/jira/browse/PARQUET-2222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17747231#comment-17747231
 ] 

Gang Wu edited comment on PARQUET-2222 at 7/26/23 4:12 AM:
-----------------------------------------------------------

Actually in the specs, RLE has been stated *as an alternative to PLAIN* for 
boolean values {*}6 years ago{*}:

https://github.com/apache/parquet-format/blob/master/Encodings.md?plain=1#L127
{quote}Note that the RLE encoding method is only supported for the following 
types of
data:
 * Repetition and definition levels
 * Dictionary indices
 * Boolean values in data pages, as an alternative to PLAIN encoding{quote}
Should we just keep the specs as is and let the implementations decide which 
encoding

to use for boolean values?


was (Author: wgtmac):
Make sense. Then we probably have to fix the description of the specs.

> [Format] RLE encoding spec incorrect for v2 data pages
> ------------------------------------------------------
>
>                 Key: PARQUET-2222
>                 URL: https://issues.apache.org/jira/browse/PARQUET-2222
>             Project: Parquet
>          Issue Type: Bug
>          Components: parquet-format
>            Reporter: Antoine Pitrou
>            Assignee: Xuwei Fu
>            Priority: Critical
>             Fix For: format-2.10.0
>
>
> The spec 
> (https://github.com/apache/parquet-format/blob/master/Encodings.md#run-length-encoding--bit-packing-hybrid-rle--3)
>  has this:
> {code}
> rle-bit-packed-hybrid: <length> <encoded-data>
> length := length of the <encoded-data> in bytes stored as 4 bytes little 
> endian (unsigned int32)
> {code}
> But the length is actually prepended only in v1 data pages, not in v2 data 
> pages.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to