@@ -607,11 +607,6 @@ def test_ingestion_with_updates_and_timetravel(tmp_path):
607607 gt_i , gt_d = get_groundtruth (dataset_dir , k )
608608
609609 for index_type , index_class in zip (INDEXES , INDEX_CLASSES ):
610- # TODO(paris): Fix Vamana bug and re-enable:
611- # ValueError: New ingestion timestamp: 1 can't be smaller that the latest ingestion timestamp: 1713444057062
612- if index_type == "VAMANA" :
613- continue
614-
615610 index_uri = os .path .join (tmp_path , f"array_{ index_type } " )
616611 index = ingest (
617612 index_type = index_type ,
@@ -647,6 +642,11 @@ def test_ingestion_with_updates_and_timetravel(tmp_path):
647642 index = index_class (uri = index_uri , timestamp = 101 )
648643 _ , result = index .query (queries , k = k , nprobe = partitions )
649644 assert accuracy (result , gt_i , updated_ids = updated_ids ) == 1.0
645+
646+ # TODO(paris): Fix Vamana bug and re-enable:
647+ if index_type == "VAMANA" :
648+ continue
649+
650650 index_uri = move_local_index_to_new_location (index_uri )
651651 index = index_class (uri = index_uri , timestamp = (0 , 101 ))
652652 _ , result = index .query (queries , k = k , nprobe = partitions )
@@ -837,11 +837,6 @@ def test_ingestion_with_additions_and_timetravel(tmp_path):
837837 gt_i , gt_d = get_groundtruth (dataset_dir , k )
838838
839839 for index_type , index_class in zip (INDEXES , INDEX_CLASSES ):
840- # TODO(paris): Fix Vamana bug and re-enable:
841- # ValueError: New ingestion timestamp: 1 can't be smaller that the latest ingestion timestamp: 1713444057062
842- if index_type == "VAMANA" :
843- continue
844-
845840 index_uri = os .path .join (tmp_path , f"array_{ index_type } " )
846841 index = ingest (
847842 index_type = index_type ,
@@ -865,14 +860,17 @@ def test_ingestion_with_additions_and_timetravel(tmp_path):
865860 )
866861 updated_ids [i ] = i + update_ids_offset
867862
868- index_uri = move_local_index_to_new_location (index_uri )
863+ # TODO(paris): Fix Vamana bug and re-enable:
864+ # tiledb.cc.TileDBError: [TileDB::ArrayDirectory] Error: Cannot open array; Array does not exist.
865+ if index_type != "VAMANA" :
866+ index_uri = move_local_index_to_new_location (index_uri )
869867 index = index_class (uri = index_uri )
870- _ , result = index .query (queries , k = k , nprobe = partitions )
871- assert 0.45 < accuracy (result , gt_i ) < 0.55
868+ _ , result = index .query (queries , k = k , nprobe = partitions , opt_l = k * 2 )
869+ assert 0.45 < accuracy (result , gt_i )
872870
873871 index = index .consolidate_updates ()
874- _ , result = index .query (queries , k = k , nprobe = partitions )
875- assert 0.45 < accuracy (result , gt_i ) < 0.55
872+ _ , result = index .query (queries , k = k , nprobe = partitions , opt_l = k * 2 )
873+ assert 0.45 < accuracy (result , gt_i )
876874
877875
878876def test_ivf_flat_ingestion_tdb_random_sampling_policy (tmp_path ):
0 commit comments