Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Torch3333 committed Nov 6, 2024
1 parent 9d318f8 commit 35f0169
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/com/scalar/db/util/ScalarDbUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ public static Mutation copyAndSetTargetToIfNot(

public static Put copyAndSetTargetToIfNot(
Put put, Optional<String> namespace, Optional<String> tableName) {
Put ret = new Put(put); // copy
Put ret = Put.newBuilder(put).build(); // copy
setTargetToIfNot(ret, namespace, tableName);
return ret;
}

public static Delete copyAndSetTargetToIfNot(
Delete delete, Optional<String> namespace, Optional<String> tableName) {
Delete ret = new Delete(delete); // copy
Delete ret = Delete.newBuilder(delete).build(); // copy
setTargetToIfNot(ret, namespace, tableName);
return ret;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1793,7 +1793,8 @@ private Put preparePut(
firstClusteringOrder,
secondClusteringKeyType,
secondClusteringOrder))
.partitionKey(
.partitionKey(getPartitionKey())
.clusteringKey(
Key.newBuilder().add(firstClusteringKeyValue).add(secondClusteringKeyValue).build())
.value(IntColumn.of(COL_NAME, 1))
.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,4 @@ public ExpectedResult build() {
}
}
}


}

0 comments on commit 35f0169

Please sign in to comment.