File tree Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Expand file tree Collapse file tree 4 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -296,6 +296,12 @@ def get_setup_state(
296296 ) -> _State :
297297 if len (key_fields_schema ) != 1 :
298298 raise ValueError ("LanceDB only supports a single key field" )
299+ if index_options .vector_indexes is not None :
300+ for vector_index in index_options .vector_indexes :
301+ if vector_index .method is not None :
302+ raise ValueError (
303+ "Vector index method is not configurable for LanceDB yet"
304+ )
299305 return _State (
300306 key_field_schema = key_fields_schema [0 ],
301307 value_fields_schema = value_fields_schema ,
Original file line number Diff line number Diff line change @@ -772,6 +772,9 @@ impl TargetFactoryBase for Factory {
772772 let data_coll_outputs: Vec < TypedExportDataCollectionBuildOutput < Self > > =
773773 std:: iter:: zip ( data_collections, analyzed_data_colls. into_iter ( ) )
774774 . map ( |( data_coll, analyzed) | {
775+ if !data_coll. index_options . vector_indexes . is_empty ( ) {
776+ api_bail ! ( "Vector indexes are not supported for Kuzu yet" ) ;
777+ }
775778 fn to_dep_table (
776779 field_mapping : & AnalyzedGraphElementFieldMapping ,
777780 ) -> Result < ReferencedNodeTable > {
Original file line number Diff line number Diff line change @@ -568,6 +568,9 @@ impl SetupState {
568568 . map ( |f| ( f. name . as_str ( ) , & f. value_type . typ ) )
569569 . collect :: < HashMap < _ , _ > > ( ) ;
570570 for index_def in index_options. vector_indexes . iter ( ) {
571+ if index_def. method . is_some ( ) {
572+ api_bail ! ( "Vector index method is not configurable for Neo4j yet" ) ;
573+ }
571574 sub_components. push ( ComponentState {
572575 object_label : schema. elem_type . clone ( ) ,
573576 index_def : IndexDef :: from_vector_index_def (
Original file line number Diff line number Diff line change @@ -422,6 +422,9 @@ impl TargetFactoryBase for Factory {
422422 } else {
423423 api_bail ! ( "Field `{}` specified more than once in vector index definition" , vector_index. field_name) ;
424424 }
425+ if vector_index. method . is_some ( ) {
426+ api_bail ! ( "Vector index method is not configurable for Qdrant yet" ) ;
427+ }
425428 }
426429 None => {
427430 if let Some ( field) = d. value_fields_schema . iter ( ) . find ( |f| f. name == vector_index. field_name ) {
You can’t perform that action at this time.
0 commit comments