austin362667 opened a new issue, #12210:
URL: https://github.com/apache/datafusion/issues/12210

   ### Is your feature request related to a problem or challenge?
   
   1. Since there are aggregate functions like `corr` and `covar`, it makes 
sense to me that we should add aggregate `distance`.
   2. Beyond the aggregate function, it might also be valuable to add scalar 
UDFs like `list_distance`/`array_distance`, similar to DuckDB, along with other 
methods of distance measurement (e.g., like `cosine` etc).
   
   This function is particularly useful for scenarios involving spatial 
analysis, clustering, or similarity computations, where distance metrics are 
crucial. 
   
   ### Describe the solution you'd like
   
   XREF: DuckDB [list 
functions](https://duckdb.org/docs/sql/functions/list.html#list_distancelist1-list2),
 [array 
functions](https://duckdb.org/docs/sql/functions/array#array_distancearray1-array2)
   > side note: `list` and `array` are different by their own definition.
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to