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

feat: Nested map support for columnar shuffle #51

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

viirya
Copy link
Member

@viirya viirya commented Feb 20, 2024

Which issue does this PR close?

Closes #52.

Rationale for this change

Contributed internal patch of map shuffle support to Comet.

What changes are included in this PR?

This patch implements native map accessor for Spark UnsafeRows. So columnar shuffle can support nested map field.

Note that deeply nested map is not supported. Due to the design of MapBuilder, it has a K: ArrayBuilder and V: ArrayBuilder as type parameter. It makes hard to construct an arbitrarily nested MapBuilder. Actually map of map sounds like a DataType rarely to be used in practice. Maybe we don't need to support it.

Map of list (i.e., `MapBuilder<ListBuilder<...>, ...>`) is not supported too for same reason.

How are these changes tested?

Copy link
Member

@sunchao sunchao left a comment

Choose a reason for hiding this comment

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

LGTM, this has already been reviewed internally.

@viirya viirya merged commit e738d46 into apache:main Feb 20, 2024
6 checks passed
@viirya
Copy link
Member Author

viirya commented Feb 20, 2024

Merged. Thanks.

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.

Nested map support for columnar shuffle
2 participants