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

   **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*)
   -->
   
   I want to be able to compare ListArray. The comparison order is left to 
right and if the prefix is the same then it is considered.
   lesser.
   
   For example, 
   * List(1,2,3) < List(1,2,3,4)
   * List(List(1,2,3), List(10)) < List(List(1,2,4), List(1))
   * List(List(1,2,3), List(1)) > List(List(1,2,2), List(2))
   
   > The behavior takes Duckdb's array sort as a reference.
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   
   Support nested types in `compare_op`, currently failed on this line.
   ```rust
       if l_t != r_t || l_t.is_nested() {
           return Err(ArrowError::InvalidArgumentError(format!(
               "Invalid comparison operation: {l_t} {op} {r_t}"
           )));
       }
   ```
   
   **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.
   -->
   
   We can support most of the ops in the future, `lt` and `eq` are two 
important functions that should work first.


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