Skip to content

Commit

Permalink
fix conflict.
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinLeeo committed Oct 28, 2024
1 parent f0b0bd1 commit fa92edd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/schema.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ void Schema::AddVectorToVectorIndex(KvTransaction& txn, VertexId vid, const Valu
"vector index dimension mismatch, vector size:{}, dim:{}",
floatvector.back().size(), dim);
}
index->Add(floatvector, vids, 1);
index->Add(floatvector, vids);
} else {
auto& fe = fields_[idx];
if (fe.GetIsNull(record)) continue;
Expand All @@ -393,9 +393,8 @@ void Schema::AddVectorToVectorIndex(KvTransaction& txn, VertexId vid, const Valu
"vector index dimension mismatch, vector size:{}, dim:{}",
floatvector.back().size(), dim);
}
index->Add(floatvector, vids, 1);
index->Add(floatvector, vids);
}
index->Add(floatvector, vids);
}
}

Expand Down

0 comments on commit fa92edd

Please sign in to comment.