Skip to content

Remove redundantis_numeric and other checks for DataType #1613

New issue

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

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

Already on GitHub? # to your account

Closed
alamb opened this issue Jan 19, 2022 · 5 comments · Fixed by #7734
Closed

Remove redundantis_numeric and other checks for DataType #1613

alamb opened this issue Jan 19, 2022 · 5 comments · Fixed by #7734
Labels
good first issue Good for newcomers

Comments

@alamb
Copy link
Contributor

alamb commented Jan 19, 2022

arrow-rs has some functions to check data type, and the logic is also in datafusion, for example, https://docs.rs/arrow/7.0.0/arrow/datatypes/enum.DataType.html#method.is_numeric

We should reduce the redundancy in DataFusion to make the codebase clear.

Originally posted by @liukun4515 in #1606 (comment)

@alamb
Copy link
Contributor Author

alamb commented Jan 21, 2022

This is a good one -- just delete some code from DataFusion 👍

@HaoYang670
Copy link
Contributor

is_numeric in arrow-rs seems not to be same as in arrow-datafusion because DataType::Decimal is not included.

@liukun4515
Copy link
Contributor

is_numeric in arrow-rs seems not to be same as in arrow-datafusion because DataType::Decimal is not included.

@HaoYang670

In the PG or Spark, the decimal is included in the numeric.
Because the decimal is in development, some codes may be not consistent.

@liukun4515
Copy link
Contributor

Now we can focus on other issues, and deal with them after other stabilization.

@HaoYang670
Copy link
Contributor

At least, should rename this function, so that developers would not misuse this and DataType::is_numeric.

qrilka added a commit to qrilka/arrow-datafusion that referenced this issue Oct 3, 2023
It's available in arrow-rs since version 3.0.0

Resolves apache#1613
alamb pushed a commit that referenced this issue Oct 4, 2023
It's available in arrow-rs since version 3.0.0

Resolves #1613
Ted-Jiang pushed a commit to Ted-Jiang/arrow-datafusion that referenced this issue Oct 7, 2023
It's available in arrow-rs since version 3.0.0

Resolves apache#1613
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants