my sql is:
SELECT vector_column, rowid FROM vector_table WHERE vector_column MATCH ‘[xxxx,xxxx,xxx...]’ ORDER BY distance LIMIT 10
it works well.
but if i add a table and use join query, the sql as below:
SELECT vector_column, rowid, raw_data_column FROM vector_table JOIN raw_data_table ON raw_data_table.rowid = vector_table.rowid WHERE vector_column MATCH ‘[xxxx,xxxx,xxx...]’ ORDER BY distance LIMIT 10
the query throw an exception as below:
A LIMIT or 'k = ?' constraint is required on vec0 knn queries.
Is there any way to add extra columns to store some extra info for query? There are only 2 columns, we can not filter the query by conditions.
my sql is: SELECT vector_column, rowid FROM vector_table WHERE vector_column MATCH ‘[xxxx,xxxx,xxx...]’ ORDER BY distance LIMIT 10 it works well.
but if i add a table and use join query, the sql as below: SELECT vector_column, rowid, raw_data_column FROM vector_table JOIN raw_data_table ON raw_data_table.rowid = vector_table.rowid WHERE vector_column MATCH ‘[xxxx,xxxx,xxx...]’ ORDER BY distance LIMIT 10 the query throw an exception as below: A LIMIT or 'k = ?' constraint is required on vec0 knn queries.
Is there any way to add extra columns to store some extra info for query? There are only 2 columns, we can not filter the query by conditions.