File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
src/main/java/com/alipay/oceanbase/rpc Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -92,8 +92,7 @@ public static boolean isReturnOneResultSupport() {
9292 }
9393
9494 public static boolean isHBaseBatchGetSupport () {
95- return (OB_VERSION >= OB_VERSION_4_2_5_2 && OB_VERSION < OB_VERSION_4_3_0_0 )
96- || OB_VERSION >= OB_VERSION_4_3_5_0 ;
95+ return OB_VERSION >= OB_VERSION_4_2_5_2 && OB_VERSION < OB_VERSION_4_3_0_0 ;
9796 }
9897
9998 public static boolean isCellTTLSupport () {
Original file line number Diff line number Diff line change @@ -90,11 +90,8 @@ public BatchOperation setTable(String tableName) {
9090 */
9191 public BatchOperation addOperation (TableQuery ... queries ) {
9292 boolean isHBaseQuery = false ;
93- for (TableQuery query : queries ) {
94- if (query .getObTableQuery ().isHbaseQuery ()) {
95- isHBaseQuery = true ;
96- }
97- break ;
93+ if (queries != null && queries .length > 0 ) {
94+ isHBaseQuery = queries [0 ].getObTableQuery ().isHbaseQuery ();
9895 }
9996 if (isHBaseQuery ) {
10097 if (isSameType && lastType != ObTableOperationType .INVALID
@@ -118,7 +115,7 @@ public BatchOperation addOperation(TableQuery... queries) {
118115 */
119116 public BatchOperation addOperation (Get ... gets ) {
120117 if (isSameType && lastType != ObTableOperationType .INVALID
121- && lastType != ObTableOperationType .GET ) {
118+ && lastType != ObTableOperationType .GET ) {
122119 isSameType = false ;
123120 }
124121
You can’t perform that action at this time.
0 commit comments