steFaiz opened a new pull request, #7550:
URL: https://github.com/apache/paimon/pull/7550

   ### Purpose
   Flink supports vector search procedure. This is a flink version of 
https://github.com/apache/paimon/pull/6950
   Usage:
   ``` sql
   CALL sys.vector_search(
     `table` => 'tableId',
     vector_column => 'v',
     query_vector => '1.0,2.0,3.0',
     top_k => 5
   )
   ```
   
   Note that flink 2.0 has already supported native vector search, see [flink 
vector 
search](https://nightlies.apache.org/flink/flink-docs-release-2.2/docs/dev/table/sql/queries/vector-search/).
 It can cover this procedure through passing a constant vector, like:
   ``` sql
   -- Searching with contant value
   SELECT * 
   FROM TABLE(VECTOR_SEARCH(
     TABLE vector_table,
     ARRAY[10, 20],
     DESCRIPTOR(index_column),
     10,
   ));
   ```
   
   We could support it in the future.
   
   ### Tests
   see `org.apache.paimon.flink.procedure.VectorSearchProcedureITCase`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to