Skip to content

PARQUET-63: Enable dictionary encoding for FIXED. - #30

Closed
rdblue wants to merge 1 commit into
apache:masterfrom
rdblue:PARQUET-63-add-fixed-dictionary-support
Closed

PARQUET-63: Enable dictionary encoding for FIXED.#30
rdblue wants to merge 1 commit into
apache:masterfrom
rdblue:PARQUET-63-add-fixed-dictionary-support

Conversation

@rdblue

@rdblue rdblue commented Aug 2, 2014

Copy link
Copy Markdown
Contributor

This uses the existing dictionary support introduced for int96. Encoding
and ParquetProperties have been updated to use the dictionary supporting
classes, when requested for write or present during read. This also
fixes a bug in the fixed dictionary values writer, where the length was
hard-coded for int96, 12 bytes.

@rdblue rdblue changed the title Enable dictionary encoding for FIXED. PARQUET-63: Enable dictionary encoding for FIXED. Aug 11, 2014
@julienledem

Copy link
Copy Markdown
Member

This looks good to me. However this is not forward compatible.
Files written with this version will not be readable by old versions of the library as they don't know how to initialize the column reader.
I think we should put this behind the 2_0 flag so that it can be turned on with the new encodings.

This uses the existing dictionary support introduced for int96. Encoding
and ParquetProperties have been updated to use the dictionary supporting
classes, when requested for write or present during read. This also
fixes a bug in the fixed dictionary values writer, where the length was
hard-coded for int96, 12 bytes.

Because writing dictionary-encoded fixed columns is not
forward-compatible (older versions cannot read), the encoding will only
be written for WriterVersion.PARQUET_2_0.
@rdblue
rdblue force-pushed the PARQUET-63-add-fixed-dictionary-support branch from ca59236 to bc34a34 Compare September 3, 2014 23:30
@rdblue

rdblue commented Sep 3, 2014

Copy link
Copy Markdown
Contributor Author

Added a check for WriterVersion.PARQUET_2_0 in order to write dictionary-encoded fixed.

@asfgit asfgit closed this in 647b8a7 Sep 4, 2014
tongjiechen pushed a commit to tongjiechen/incubator-parquet-mr that referenced this pull request Oct 8, 2014
This uses the existing dictionary support introduced for int96. Encoding
and ParquetProperties have been updated to use the dictionary supporting
classes, when requested for write or present during read. This also
fixes a bug in the fixed dictionary values writer, where the length was
hard-coded for int96, 12 bytes.

Author: Ryan Blue <rblue@cloudera.com>

Closes apache#30 from rdblue/PARQUET-63-add-fixed-dictionary-support and squashes the following commits:

bc34a34 [Ryan Blue] PARQUET-63: Enable dictionary encoding for FIXED.
rdblue added a commit to rdblue/parquet-mr that referenced this pull request Feb 6, 2015
This uses the existing dictionary support introduced for int96. Encoding
and ParquetProperties have been updated to use the dictionary supporting
classes, when requested for write or present during read. This also
fixes a bug in the fixed dictionary values writer, where the length was
hard-coded for int96, 12 bytes.

Author: Ryan Blue <rblue@cloudera.com>

Closes apache#30 from rdblue/PARQUET-63-add-fixed-dictionary-support and squashes the following commits:

bc34a34 [Ryan Blue] PARQUET-63: Enable dictionary encoding for FIXED.
sunchao added a commit to sunchao/parquet-mr that referenced this pull request Aug 1, 2022
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.

2 participants