Skip to content

Conversation

sungwy
Copy link
Collaborator

@sungwy sungwy commented May 2, 2024

Fixes: #450

DictionaryType is a separate type in Arrow, but isn't in Parquet.

Similar to how Arrow handles Dictionary Types, we will simply infer the Iceberg Type from the value_type of the provided DictionaryType field.

@sungwy sungwy requested a review from Fokko May 2, 2024 15:24
Copy link
Contributor

@HonahX HonahX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM! Thanks @syun64. Just have one general question: Shall we throw a warning that we will not convert the field back to dictionary type when reading?

Copy link
Contributor

@HonahX HonahX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the warning!

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@syun64 Looking good 👍

@Fokko Fokko merged commit 0508667 into apache:main May 7, 2024
@sungwy sungwy deleted the categoricals branch May 7, 2024 21:46
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.

Add support for Categoricals as a data type in the writer
3 participants