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

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   <!--
   A clear and concise description of what the problem is. Ex. I'm always 
frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for 
this feature, in addition to  the *what*)
   -->
   
   We have implemented the variant primitive to arrow types for all variant 
primitive types now(1-1 mapping), but maybe the user will pass a different type 
which is not a valid arrow primitive type, this issue wants to discuss which 
arrow types we will support transformed from variant primitive with cast, or we 
don't need to support these types.
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   
   Here is data types I collected for now
   
   | Arrow DataType  | Variant primitive Type | Cast logic | 
   | -- | -- | -- | 
   | Date64 | Date32 | `Date32` * (24 * 60 * 60 * 1000)` | - |
   | Timestamp_\[ntz\](Second) | Timestamp_\[ntz\](Micros/Nanos) | - use 
`micros` as an example <br> - let the timestamp be `t` <br> - there are two 
options for unhappy path <br> 1. return None if `t % 1000000` != 0 <br> 2 
return `floor[t / 1000000]`|
   | TImestamp_\[ntz\](Millisecond) | Timestamp_\[ntz\](Micros/Nanos) | Same as 
above |
   | Time32(Second/Millisecond) | Time | same as above |  
   | Time64(Nanosecond) | Time(Macors) |  same as above | 
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features 
you've considered.
   -->
   
   If there is any types we want to support, we can ref to the logic of 
`variant_to_arrow.rs#make_variant_to_arrow_row_builder` for more info
   
   **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