Closed hdulay closed 7 months ago
Here is the SQL executed in python that encountered this error.
SELECT
ProductId,
Summary,
Score,
l2_distance(embedding, ARRAY{search_embedding}) AS l2_dist
from fineFoodReviews
where VECTOR_SIMILARITY(embedding, ARRAY{search_embedding}, 5)
order by l2_dist asc
Thanks for the reporting! There is a regression introduced by https://github.com/apache/pinot/pull/12118 The fix is here: https://github.com/apache/pinot/pull/12365
I'm testing the Vector Similarity function using this statement but getting the corresponding error:
For VECTOR_SIMILARITY predicate, the second operand must be a float array literal
Workaround is to use CTE & multistage = true