Skip to content

Conversation

pepeshore
Copy link

@pepeshore pepeshore commented Sep 25, 2025

Resolved #14702

@pepeshore pepeshore requested a review from a team as a code owner September 25, 2025 08:01
Copy link

linux-foundation-easycla bot commented Sep 25, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@github-actions github-actions bot added the test native This label can be applied to PRs to trigger them to run native tests label Sep 25, 2025
@otelbot-java-instrumentation
Copy link
Contributor

🔧 The result from spotlessApply was committed to the PR branch.

@steverao steverao changed the title feat: OceanBase、PolarDB、Lindorm JDBC URL Parse Support (#14702) Add JDBC URL parsing support for OceanBase, PolarDB and Lindorm Sep 26, 2025
return DbSystemValues.CLICKHOUSE;
case "oceanbase": // Oceanbase
return DbSystemValues.OCEANBASE;
case "polardb": // polarDB
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
case "polardb": // polarDB
case "polardb": // PolarDB

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

return DbSystemValues.OCEANBASE;
case "polardb": // polarDB
return DbSystemValues.POLARDB;
case "lindorm": // lindorm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
case "lindorm": // lindorm
case "lindorm": // Lindorm

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

},
/**
* <a
* href="https://www.alibabacloud.com/help/en/lindorm/user-guide/view-endpoints?spm=a2c63.p38356.help-menu-172543.d_2_0_1.7a1e41feMntzyJ">Driver
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* href="https://www.alibabacloud.com/help/en/lindorm/user-guide/view-endpoints?spm=a2c63.p38356.help-menu-172543.d_2_0_1.7a1e41feMntzyJ">Driver
* href="https://www.alibabacloud.com/help/en/lindorm/user-guide/view-endpoints">Driver

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleted

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

deleted

did you forget to actually delete the url parameters?


private static Stream<Arguments> oceanbaseArguments() {
return args(
// https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieving-secrets_jdbc.html
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It it correct url?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed


private static Stream<Arguments> lindormArguments() {
return args(
// https://docs.aws.amazon.com/secretsmanager/latest/userguide/retrieving-secrets_jdbc.html
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question with above

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Change-Id: I39d2ce579c60d5afa2e792f3296eef5d0b495443
…r' into feature/additonal-jdbc-url-parser

Change-Id: I5b6ee06da60fc32dc1edece63948d228c95f710b
String subtype = jdbcUrl.substring(typeEndLoc + 1, protoLoc);
builder.subtype(subtype);
if (subtype.equals(DbSystemValues.ORACLE)) {
builder.system(DbSystemValues.ORACLE);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is oracle the only supported subtype?

Comment on lines +924 to +926
if (subtype.equals(DbSystemValues.ORACLE)) {
builder.system(DbSystemValues.ORACLE);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

initially I though that it is weird to have subtype and system set to the same value but DATADIRECT url handling does the same

return GENERIC_URL_LIKE.doParse(clickhouseUrl, builder);
}
},
/** jdbc:oceanbase://host:port/dbname jdbc:oceanbase:oracle://host:port/dbname */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps change the comment to

  /**
   * Sample urls:
   *
   * <ul>
   *   <li>jdbc:oceanbase://host:port/dbname
   *   <li>jdbc:oceanbase:oracle://host:port/dbname
   * </ul>
   */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test native This label can be applied to PRs to trigger them to run native tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some JDBC Connection String Parse failed
3 participants