This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-2.1 in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push: new b3230c0262e branch-2.1: [fix](ob catalog) fix oceanbase catalog get connection #48593 (#48809) b3230c0262e is described below commit b3230c0262e057a9a7e06e221a1479d26fe48be6 Author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> AuthorDate: Tue Mar 11 12:11:59 2025 +0800 branch-2.1: [fix](ob catalog) fix oceanbase catalog get connection #48593 (#48809) Cherry-picked from #48593 Co-authored-by: zy-kkk <zhongy...@gmail.com> --- .../apache/doris/datasource/jdbc/client/JdbcOceanBaseClient.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/client/JdbcOceanBaseClient.java b/fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/client/JdbcOceanBaseClient.java index f43119875d6..004e7c80f3d 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/client/JdbcOceanBaseClient.java +++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/jdbc/client/JdbcOceanBaseClient.java @@ -65,8 +65,12 @@ public class JdbcOceanBaseClient extends JdbcClient { throw new UnsupportedOperationException("JdbcOceanBaseClient does not support jdbcTypeToDoris"); } - private void setOracleMode() { + @Override + public String getTestQuery() { + return "SELECT 1 FROM DUAL"; + } + + void setOracleMode() { this.dbType = JdbcResource.OCEANBASE_ORACLE; } } - --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org