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

Data: (Breaking) Change Enum field type to contain EnumItem #632

Merged
merged 5 commits into from
Feb 28, 2023

Conversation

kylebrandt
Copy link
Contributor

@kylebrandt kylebrandt commented Feb 27, 2023

Looking into changing EnumVector to contain EnumItems, so the vector type can be known from the type of a single item.

This makes FieldTypeFor and data.NewField work with enums, #581 (comment)

This is a breaking change since before this field would be passed unit16 and is now passed a data.EnumItemIndex instead. But from discussing with Ryan this is used outside a PR right now as far as we know.

@kylebrandt kylebrandt added dataframe area/dataplane Dataplane Project (Data type contract) labels Feb 28, 2023
@kylebrandt kylebrandt marked this pull request as ready for review February 28, 2023 17:54
@kylebrandt kylebrandt requested a review from a team as a code owner February 28, 2023 17:54
Copy link
Member

@ryantxu ryantxu left a comment

Choose a reason for hiding this comment

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

thank you -- this will help add a more fluent enum API also :)

@kylebrandt kylebrandt merged commit d252e51 into main Feb 28, 2023
@kylebrandt kylebrandt deleted the enumItem branch February 28, 2023 18:01
@kylebrandt kylebrandt changed the title Data: Make (WIP) enums contain EnumItem Data: (Breaking) Change Enum field type to contain EnumItem Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dataplane Dataplane Project (Data type contract) dataframe
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants