Skip to content

Commit b7e7fec

Browse files
authored
fix some bugs (#298)
* fix sub expr bug * fix queryAndMutate in secondary part
1 parent 36640d5 commit b7e7fec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/alipay/oceanbase/rpc/ObTableClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,7 +1797,7 @@ public ObPair<Long, ObTableParam> getTable(String tableName, ObTableQuery query,
17971797
}
17981798
}
17991799

1800-
if (partIdMapObTable.size() > 1) {
1800+
if (partIdMapObTable.size() > 1 && !getServerCapacity().isSupportDistributedExecute()) {
18011801
throw new ObTablePartitionConsistentException(
18021802
"query and mutate must be a atomic operation");
18031803
} else if (partIdMapObTable.size() < 1) {
@@ -3763,7 +3763,7 @@ public ObPayload execute(final ObTableAbstractOperationRequest request) throws E
37633763
}
37643764

37653765
// Check if partIdMapObTable size is greater than 1
3766-
if (partIdMapObTable.size() > 1) {
3766+
if (partIdMapObTable.size() > 1 && !getServerCapacity().isSupportDistributedExecute()) {
37673767
throw new ObTablePartitionConsistentException(
37683768
"query and mutate must be a atomic operation");
37693769
}

0 commit comments

Comments
 (0)