|
@@ -64,6 +64,11 @@ public class CdcMysqlTablesSink extends RichSinkFunction<TransportMap> {
|
|
}
|
|
}
|
|
String tableName = tableNameMap.get(value.getTableName());
|
|
String tableName = tableNameMap.get(value.getTableName());
|
|
tableName = StringUtils.isBlank(tableName) ? value.getTableName() : tableName;
|
|
tableName = StringUtils.isBlank(tableName) ? value.getTableName() : tableName;
|
|
|
|
+
|
|
|
|
+ if(tableName.contains("qc_")){
|
|
|
|
+ tableName = tableName.replaceAll("qc_","");
|
|
|
|
+ }
|
|
|
|
+
|
|
List<String> primaryKeys = value.getPrimaryKeys();
|
|
List<String> primaryKeys = value.getPrimaryKeys();
|
|
Map<String, Object> data = value.getAfter();
|
|
Map<String, Object> data = value.getAfter();
|
|
if (Envelope.Operation.DELETE == value.getOperation()) {
|
|
if (Envelope.Operation.DELETE == value.getOperation()) {
|