Skip to content

Commit

Permalink
build(deps): bump ob-partition-calculator to 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
whhe committed Nov 27, 2023
1 parent 66c384a commit eabae73
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion flink-connector-oceanbase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ under the License.
<dependency>
<groupId>com.oceanbase</groupId>
<artifactId>ob-partition-calculator</artifactId>
<version>1.7.0-RELEASE</version>
<version>1.8.0-RELEASE</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import com.oceanbase.connector.flink.dialect.OceanBaseOracleDialect;
import com.oceanbase.partition.calculator.enums.ObServerMode;
import com.oceanbase.partition.calculator.helper.TableEntryExtractor;
import com.oceanbase.partition.calculator.helper.TableEntryExtractorV4;
import com.oceanbase.partition.calculator.model.TableEntry;
import com.oceanbase.partition.calculator.model.TableEntryKey;

Expand Down Expand Up @@ -116,17 +115,12 @@ public OceanBaseTablePartInfo getTablePartInfo() {
}
TableEntry tableEntry;
try (Connection connection = getConnection()) {
if (getConnectionInfo().getVersion().isV4()) {
tableEntry =
new TableEntryExtractorV4()
.queryTableEntry(
connection, getConnectionInfo().getTableEntryKey());
} else {
tableEntry =
new TableEntryExtractor()
.queryTableEntry(
connection, getConnectionInfo().getTableEntryKey());
}
tableEntry =
new TableEntryExtractor()
.queryTableEntry(
connection,
getConnectionInfo().getTableEntryKey(),
getConnectionInfo().getVersion().isV4());
if (tableEntry == null) {
throw new RuntimeException(
"Failed to get table entry with key: "
Expand Down

0 comments on commit eabae73

Please sign in to comment.