File tree Expand file tree Collapse file tree
delta-plugins-common/src/main/java/io/cdap/delta/plugin/common
mysql-delta-plugins/src/main/java/io/debezium/connector/mysql Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -304,7 +304,8 @@ public static Schema convert(org.apache.kafka.connect.data.Schema schema) {
304304 for (Field field : fields ) {
305305 cdapFields .add (Schema .Field .of (field .name (), convert (field .schema ())));
306306 }
307- converted = Schema .recordOf (schema .name (), cdapFields );
307+
308+ converted = Schema .recordOf (schema .name () == null ? "dummy.schema.name" : schema .name (), cdapFields );
308309 break ;
309310 default :
310311 // should never happen, all values are listed above
Original file line number Diff line number Diff line change @@ -92,9 +92,7 @@ public MySqlJdbcContext(MySqlConnectorConfig config) {
9292
9393 jdbcConfig = jdbcConfigBuilder .build ();
9494 String driverClassName = jdbcConfig .getString (MySqlConnectorConfig .JDBC_DRIVER );
95- this .jdbc = new JdbcConnection (jdbcConfig ,
96- JdbcConnection .patternBasedFactory (MYSQL_CONNECTION_URL , driverClassName ,
97- getClass ().getClassLoader ()));
95+ this .jdbc = new JdbcConnection (jdbcConfig , connectionFactory );
9896 }
9997
10098 public Configuration config () {
You can’t perform that action at this time.
0 commit comments