RLE encoding and decoding does not work correctly if the dictionary has > 255 entries.
A column chunk with a dictionary and data pages in both PLAIN and PLAIN_DICTIONARY decodes the PLAN pages incorrectly.
There is no unit test for the second fix. I could only reproduce this with a 290 MB .parquet file generated by Apache Spark, and was unable to find another library that will create a file with both PLAIN and PLAIN_DICTIONARY pages in the same chunk.
This PR fixes 2 bugs:
There is no unit test for the second fix. I could only reproduce this with a 290 MB .parquet file generated by Apache Spark, and was unable to find another library that will create a file with both PLAIN and PLAIN_DICTIONARY pages in the same chunk.