Skip to content

Commit

Permalink
[feat][executor] Change schemas for fixing the wrong column index whe…
Browse files Browse the repository at this point in the history
…n decode vector value buf.
  • Loading branch information
nokiaMS authored and githubgxll committed Dec 26, 2024
1 parent a2ae488 commit c1a4e63
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class TxnPartVectorOperator extends FilterProjectSourceOperator {
String distanceType = param.getDistanceType();
KeyValueCodec tableCodec;
tableCodec = CodecService.getDefault().createKeyValueCodec(
param.getTable().version, param.getTableDataSchema(), param.tableDataKeyMapping()
param.getIndexTable().version, param.getIndexTable().tupleType(), param.getIndexTable().keyMapping()
);
StoreInstance instance = Services.KV_STORE.getInstance(param.getTableId(), param.getPartId());
List<VectorSearchResponse> searchResponseList = instance.vectorSearch(
Expand Down Expand Up @@ -136,7 +136,7 @@ public class TxnPartVectorOperator extends FilterProjectSourceOperator {
decode[decode.length - 1] = response.getDistance();
decode[vecIdx] = response.getFloatValues();

vecPriIdxMapping.forEach((key, value) -> decode[value] = vecTuples[key]);
//vecPriIdxMapping.forEach((key, value) -> decode[value] = vecTuples[key]);
results.add(decode);
}
} else {
Expand Down

0 comments on commit c1a4e63

Please sign in to comment.