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

Remove some ArrowNativeType from conversions #2792

Closed

Conversation

tustvold
Copy link
Contributor

Which issue does this PR close?

Closes #.

Rationale for this change

These don't seem to serve a purpose, they can't be used in a context where Self isn't known statically, as they return Self, and only return Some when Self is the corresponding type. In all cases it can simply be replaced with Some

What changes are included in this PR?

Removes the from conversion functions, these could theoretically be deprecated, but I'm not sure of a use-case that would warrant keeping them around

Are there any user-facing changes?

@tustvold tustvold added the api-change Changes to the arrow API label Sep 27, 2022
@tustvold tustvold changed the title Remove from ArrowNativeType from conversions Remove ArrowNativeType from conversions Sep 27, 2022
@tustvold
Copy link
Contributor Author

These aren't being used in DataFusion either

@github-actions github-actions bot added the arrow Changes to the arrow crate label Sep 27, 2022
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

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

I think we should deprecate them for at least one cycle (as I don't have the mental energy to go hunting for uses it would be nice to get active feedback from someone that they were used rather than blocking someones upgrade

@alamb alamb changed the title Remove ArrowNativeType from conversions Remove some ArrowNativeType from conversions Sep 27, 2022
@tustvold
Copy link
Contributor Author

Ok I will roll this into #2793

@tustvold tustvold closed this Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-change Changes to the arrow API arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants