Raghav Jindal has uploaded this change for review. ( http://gerrit.cloudera.org:8080/23729
Change subject: IMPALA-14566: Add euclidean_distance and cosine_similarity functions for ARRAY<FLOAT> ...................................................................... IMPALA-14566: Add euclidean_distance and cosine_similarity functions for ARRAY<FLOAT> This commit adds two new built-in functions for vector similarity calculations: - euclidean_distance: Computes L2 distance between two vectors - cosine_similarity: Computes cosine similarity between two vectors Both functions operate on ARRAY<FLOAT> data types and return DOUBLE values for better precision. These functions enable semantic search capabilities within Impala. Change-Id: Ic1f17fa85819994703510b425c50db46af573836 --- A be/src/exprs/vector-functions-ir.cc A be/src/exprs/vector-functions.h M common/function-registry/impala_functions.py 3 files changed, 215 insertions(+), 0 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/29/23729/3 -- To view, visit http://gerrit.cloudera.org:8080/23729 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: Ic1f17fa85819994703510b425c50db46af573836 Gerrit-Change-Number: 23729 Gerrit-PatchSet: 3 Gerrit-Owner: Raghav Jindal <[email protected]>
