my-vegetable-has-exploded opened a new issue, #5199:
URL: https://github.com/apache/arrow-rs/issues/5199

   **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*)
   -->
   
   In [datafusion 
#6635](https://github.com/apache/arrow-datafusion/issues/6635), we think 
convert tuple to struct will be helpful to implement multi column In list. 
   
   But StructAray is not comparable in arrow-rs since it is nested.
   
   
https://github.com/apache/arrow-rs/blob/7e289134a8d9f46a92a2759a7b2488b17993fd5b/arrow-ord/src/cmp.rs#L201-L205.
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   
   I don't know if this feature is already implemented in arrow.
   
   In my view,  compare PrimitiveArray may be rather different from 
NestedArray. Take equality of StrutArray as an example, I think it may need 
those steps:
   
   - check equality of datatype
   - check equality of PrimitiveArray for each field
   - perform conjunction operation on the results of each field
   
   The process slightly differs from the ```apply_op``` process.
   
   
https://github.com/apache/arrow-rs/blob/7e289134a8d9f46a92a2759a7b2488b17993fd5b/arrow-ord/src/cmp.rs#L361-L364
   
   **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.
   -->
   
   The equality of other array type may need more further consideration. Like 
equality for ListArray, shall we considerate out of order between list(which 
means that whether [[1,2]] and [[2,1]] are equal or not)?


-- 
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