Skip to content

Commit

Permalink
Add ActualAndLogicTableNameMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Nov 4, 2023
1 parent 13c3222 commit f4d413f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package org.apache.shardingsphere.data.pipeline.scenario.migration.config.ingest;

import lombok.RequiredArgsConstructor;
import org.apache.shardingsphere.data.pipeline.api.ingest.dumper.context.mapper.ActualAndLogicTableNameMapper;
import org.apache.shardingsphere.data.pipeline.api.ingest.dumper.context.mapper.TableAndSchemaNameMapper;
import org.apache.shardingsphere.data.pipeline.api.ingest.dumper.context.IncrementalDumperContext;
import org.apache.shardingsphere.data.pipeline.api.datasource.config.PipelineDataSourceConfiguration;
Expand Down Expand Up @@ -52,7 +53,7 @@ private IncrementalDumperContext buildDumperContext(final String jobId, final St
result.setJobId(jobId);
result.setDataSourceName(dataSourceName);
result.setDataSourceConfig(sourceDataSource);
result.setTableNameMap(tableNameMap);
result.setTableNameMapper(new ActualAndLogicTableNameMapper(tableNameMap));
result.setTableAndSchemaNameMapper(tableAndSchemaNameMapper);
return result;
}
Expand Down

0 comments on commit f4d413f

Please sign in to comment.