HaoYang670 opened a new issue, #2611:
URL: https://github.com/apache/arrow-rs/issues/2611

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   In datafusion, we have:
   ```rust
   /// Determine if a DataType is signed numeric or not
   pub fn is_signed_numeric(dt: &DataType) -> bool {
       matches!(
           dt,
           DataType::Int8
               | DataType::Int16
               | DataType::Int32
               | DataType::Int64
               | DataType::Float16
               | DataType::Float32
               | DataType::Float64
               | DataType::Decimal128(_, _)
       )
   }
   
   /// Determine if a DataType is numeric or not
   pub fn is_numeric(dt: &DataType) -> bool {
       is_signed_numeric(dt)
           || matches!(
               dt,
               DataType::UInt8 | DataType::UInt16 | DataType::UInt32 | 
DataType::UInt64
           )
   }
   ```
   
   We should update `DataType::is_numeric` to contain these constructors so 
that we could remove the redundant `is_numeric` in datafusion 
(https://github.com/apache/arrow-datafusion/issues/1613)
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features 
you've considered.
   -->
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request here.
   -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to