Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sunxiaojian committed Aug 16, 2024
1 parent 6252d0d commit a7269dc
Show file tree
Hide file tree
Showing 28 changed files with 92 additions and 776 deletions.
1 change: 1 addition & 0 deletions config/plugin_config
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ connector-cdc-mongodb
connector-cdc-sqlserver
connector-cdc-postgres
connector-cdc-oracle
connector-cdc-tidb
connector-clickhouse
connector-datahub
connector-dingtalk
Expand Down
1 change: 1 addition & 0 deletions plugin-mapping.properties
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ seatunnel.source.Maxcompute = connector-maxcompute
seatunnel.sink.Maxcompute = connector-maxcompute
seatunnel.source.MySQL-CDC = connector-cdc-mysql
seatunnel.source.MongoDB-CDC = connector-cdc-mongodb
seatunnel.source.TiDB-CDC = connector-cdc-tidb
seatunnel.sink.S3Redshift = connector-s3-redshift
seatunnel.source.Web3j = connector-web3j
seatunnel.source.TDengine = connector-tdengine
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
<groupId>org.tikv</groupId>
<artifactId>tikv-client-java</artifactId>
</dependency>

</dependencies>

</project>

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@
import org.apache.seatunnel.connectors.seatunnel.cdc.tidb.source.reader.TiDBSourceReader;
import org.apache.seatunnel.connectors.seatunnel.cdc.tidb.source.split.TiDBSourceSplit;

import java.util.Collections;
import java.util.List;

public class TiDBSource
implements SeaTunnelSource<SeaTunnelRow, TiDBSourceSplit, TiDBSourceCheckpointState>,
SupportParallelism,
SupportColumnProjection {

static final String IDENTIFIER = "TIDB-CDC";
static final String IDENTIFIER = "TiDB-CDC";

private TiDBSourceConfig config;
private final CatalogTable catalogTable;
Expand Down Expand Up @@ -120,4 +123,9 @@ public SourceSplitEnumerator<TiDBSourceSplit, TiDBSourceCheckpointState> restore
throws Exception {
return new TiDBSourceSplitEnumerator(context, config, checkpointState);
}

@Override
public List<CatalogTable> getProducedCatalogTables() {
return Collections.singletonList(catalogTable);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public String factoryIdentifier() {
*/
@Override
public OptionRule optionRule() {
return TiDBSourceOptions.getBaseRule()
return OptionRule.builder()
.required(
TiDBSourceOptions.DATABASE_NAME,
TiDBSourceOptions.TABLE_NAME,
Expand Down

This file was deleted.

Loading

0 comments on commit a7269dc

Please sign in to comment.