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 redundant is_numeric for DataType #7734

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

qrilka
Copy link
Contributor

@qrilka qrilka commented Oct 3, 2023

The method is_numeric is available in arrow-rs since version 3.0.0

Which issue does this PR close?

Closes #1613 .

Rationale for this change

Remove redundant code

What changes are included in this PR?

is_numeric removed, replaced with DataType::is_numeric

Are these changes tested?

Tested with cargo test

Are there any user-facing changes?

No user-facing changes

It's available in arrow-rs since version 3.0.0

Resolves apache#1613
@github-actions github-actions bot added logical-expr Logical plan and expressions optimizer Optimizer rules labels Oct 3, 2023
@qrilka
Copy link
Contributor Author

qrilka commented Oct 3, 2023

I didn't find any other methods from DataTypes which could replace functions from the type_coercion module

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.

Thank you @qrilka !

Copy link
Contributor

@Weijun-H Weijun-H left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @qrilka 👍

@alamb alamb merged commit 91a8025 into apache:main Oct 4, 2023
22 checks passed
Ted-Jiang pushed a commit to Ted-Jiang/arrow-datafusion that referenced this pull request Oct 7, 2023
It's available in arrow-rs since version 3.0.0

Resolves apache#1613
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
logical-expr Logical plan and expressions optimizer Optimizer rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove redundantis_numeric and other checks for DataType
4 participants