Skip to content
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

Support array_distance in array_expression #8782

Closed
Weijun-H opened this issue Jan 8, 2024 · 5 comments · Fixed by #12211 or #12381
Closed

Support array_distance in array_expression #8782

Weijun-H opened this issue Jan 8, 2024 · 5 comments · Fixed by #12211 or #12381
Labels
enhancement New feature or request

Comments

@Weijun-H
Copy link
Member

Weijun-H commented Jan 8, 2024

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
l1distance clickhousel1distance l2distance clickhouse

@Weijun-H Weijun-H added the enhancement New feature or request label Jan 8, 2024
@Weijun-H
Copy link
Member Author

I will work on this task if no one else wants to.

@Weijun-H
Copy link
Member Author

It seems like it could be done after #7213.

@Tangruilin
Copy link
Contributor

@Weijun-H , I am interesting in this issue.

@Weijun-H
Copy link
Member Author

@Weijun-H , I am interesting in this issue.

Hi @Tangruilin , I think this issue is stalled by #8708

@Weijun-H
Copy link
Member Author

support the column value

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