datafusion icon indicating copy to clipboard operation
datafusion copied to clipboard

Support `array_distance` in `array_expression`

Open Weijun-H opened this issue 2 years ago • 5 comments

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 avatar Jan 08 '24 07:01 Weijun-H

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

Weijun-H avatar Jan 18 '24 10:01 Weijun-H

It seems like it could be done after #7213.

Weijun-H avatar Jan 18 '24 12:01 Weijun-H

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

Tangruilin avatar Jan 29 '24 07:01 Tangruilin

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

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

Weijun-H avatar Jan 29 '24 11:01 Weijun-H

support the column value

Weijun-H avatar Aug 29 '24 04:08 Weijun-H