Skip to content

Add Scalar and Aggregate Distance UDFs #12210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
austin362667 opened this issue Aug 28, 2024 · 3 comments
Closed

Add Scalar and Aggregate Distance UDFs #12210

austin362667 opened this issue Aug 28, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@austin362667
Copy link
Contributor

austin362667 commented Aug 28, 2024

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). Please check Support array_distance in array_expression #8782

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, array functions

side note: list and array are different by their own definition.

Describe alternatives you've considered

No response

Additional context

No response

@austin362667 austin362667 added the enhancement New feature or request label Aug 28, 2024
@Weijun-H
Copy link
Member

related #8782

@austin362667
Copy link
Contributor Author

austin362667 commented Aug 28, 2024

Thank you for bringing the related issues to my attention. I've updated the second part accordingly.

@austin362667
Copy link
Contributor Author

Closing because aggregate distance might not be as helpful as array_distance,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants