Weijun-H opened a new issue, #8782:
URL: https://github.com/apache/datafusion/issues/8782

   ### Is your feature request related to a problem or challenge?
   
   The current implementation of `array_expression.rs` lacks support for the 
array_distance functionality. This feature is essential for users who want to 
calculate distances between arrays using specific metrics or custom distance 
functions.
   
   expect result
   ```
   array_distance([1, 2, 3], [4, 5, 6]) --> 5.196152422706632
   array_distance([1, 2, 3], [4, 5, 6], 'l1') --> 3
   array_distance([1, 2, 3], [4, 5, 6], 'l2') --> 5.196152422706632
   ```
   
   ### Describe the solution you'd like
   
   _No response_
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   list_distance [duckdb](https://duckdb.org/docs/sql/functions/nested)
   l1distance 
[clickhouse](https://clickhouse.com/docs/en/sql-reference/functions/distance-functions#l1distance)l1distance
 l2distance 
[clickhouse](https://clickhouse.com/docs/en/sql-reference/functions/distance-functions#l2distance)


-- 
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: github-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to