You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
When creating a table with a vector field of type int and attempting to insert data as a string array into this field, an error occurs when executing a KNN query. Instead of returning a detailed error indicating the incorrect data type for the vector field, the system returns a message about the incorrect return type in the getQueryVectorValue() function.
Expected result:
The system should correctly handle cases when an inappropriate data type is used for a vector field and return more informative errors indicating data type mismatch or incorrect format of inserted values.
ERROR 1064 (42000): Invalid data type 'int' for vector field. Use a vector-compatible type.
MRE
--------------
CREATE TABLE knn_test (id BIGINT, model TEXT, vector int)
--------------
--------------
INSERT INTO knn_test (id, model, vector) VALUES (1, 'Model_1', '[0.9012, 0.2126, 0.2879, 0.7552]')
--------------
--------------
SELECT count(*) FROM knn_test WHERE knn(vector, 10, 1)
--------------
ERROR 1064 (42000) at line 1: Manticoresearch\Buddy\Base\Plugin\Knn\Handler::getQueryVectorValue(): Return value must be of type string|false, int returned
The text was updated successfully, but these errors were encountered:
Description:
When creating a table with a vector field of type int and attempting to insert data as a string array into this field, an error occurs when executing a KNN query. Instead of returning a detailed error indicating the incorrect data type for the vector field, the system returns a message about the incorrect return type in the getQueryVectorValue() function.
Expected result:
The system should correctly handle cases when an inappropriate data type is used for a vector field and return more informative errors indicating data type mismatch or incorrect format of inserted values.
MRE
The text was updated successfully, but these errors were encountered: