in flink-connector-jdbc/src/main/java/org/apache/flink/connector/jdbc/internal/options/InternalJdbcConnectionOptions.java [184:209]
public InternalJdbcConnectionOptions build() {
checkNotNull(dbURL, "No dbURL supplied.");
checkNotNull(tableName, "No tableName supplied.");
if (this.dialect == null) {
if (classLoader == null) {
classLoader = Thread.currentThread().getContextClassLoader();
}
this.dialect = JdbcDialectLoader.load(dbURL, classLoader);
}
if (this.driverName == null) {
Optional<String> optional = dialect.defaultDriverName();
this.driverName =
optional.orElseThrow(
() -> new NullPointerException("No driverName supplied."));
}
return new InternalJdbcConnectionOptions(
dialect.appendDefaultUrlProperties(dbURL),
tableName,
driverName,
username,
password,
dialect,
parallelism,
connectionCheckTimeoutSeconds);
}