Skip to content

ALTER TABLE t html_strip='1' fails for a table with auto-embeddings #4131

@sanikolaev

Description

@sanikolaev

Bug Description:

ALTER TABLE t html_strip='1' (and presumably other similar alters) fails for a table with an auto-embeddings field:

mysql -v -P9306 -h0 -e "drop table if exists t; create table t ( f text, v FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2' FROM='f' ); ALTER TABLE t html_strip='1'"
--------------
drop table if exists t
--------------

--------------
create table t ( f text, v FLOAT_VECTOR KNN_TYPE='hnsw' HNSW_SIMILARITY='l2' MODEL_NAME='sentence-transformers/all-MiniLM-L6-v2' FROM='f' )
--------------

--------------
ALTER TABLE t html_strip='1'
--------------

ERROR 1064 (42000) at line 1: P03: knn_dims can't be used together with model_name near ')'

Manticore Search Version:

17.0.0, 17.0.1

Operating System Version:

Official docker

Have you tried the latest development version?

None

Internal Checklist:

To be completed by the assignee. Check off tasks that have been completed or are not applicable.

Details
  • Implementation completed
  • Tests developed
  • [] Documentation updated
  • [] Documentation reviewed

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions