Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept pyarrow LargeListType and FixedSizeListType #458

Merged
merged 2 commits into from
Feb 21, 2024

Conversation

hussein-awala
Copy link
Member

closes: #451

The C++ implementation of Arrow has different types of lists (https://arrow.apache.org/docs/cpp/api/datatype.html#_CPPv4N5arrow12BaseListTypeE), but these types are not correctly implemented in Python, where there is no common superclass for them, they extend the DataType class directly.

LargeListType and FixedSizeListType are also lists but with some extra characteristics, so they should be accepted by PyIceberg, and transformed to ListType as the PyArrow ListType.

In the mentioned issue, PyArrow map the Polars list to a LargeListType instead of ListType and that's why it fails.

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.

Looks good @hussein-awala Thanks for adding the support for the different lists. Thanks @HonahX for the review 👍

@Fokko Fokko merged commit 5ea0617 into apache:main Feb 21, 2024
6 checks passed
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 List as a data type in the writer
3 participants