|
|
@ -26,6 +26,7 @@ import org.apache.flink.cdc.common.event.Event;
|
|
|
|
import org.apache.flink.cdc.common.event.RenameColumnEvent;
|
|
|
|
import org.apache.flink.cdc.common.event.RenameColumnEvent;
|
|
|
|
import org.apache.flink.cdc.common.event.TableId;
|
|
|
|
import org.apache.flink.cdc.common.event.TableId;
|
|
|
|
import org.apache.flink.cdc.common.pipeline.PipelineOptions;
|
|
|
|
import org.apache.flink.cdc.common.pipeline.PipelineOptions;
|
|
|
|
|
|
|
|
import org.apache.flink.cdc.common.pipeline.SchemaChangeBehavior;
|
|
|
|
import org.apache.flink.cdc.common.schema.Column;
|
|
|
|
import org.apache.flink.cdc.common.schema.Column;
|
|
|
|
import org.apache.flink.cdc.common.schema.Schema;
|
|
|
|
import org.apache.flink.cdc.common.schema.Schema;
|
|
|
|
import org.apache.flink.cdc.common.types.DataType;
|
|
|
|
import org.apache.flink.cdc.common.types.DataType;
|
|
|
@ -134,6 +135,8 @@ class FlinkPipelineComposerITCase {
|
|
|
|
// Setup pipeline
|
|
|
|
// Setup pipeline
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
|
|
|
|
pipelineConfig.set(
|
|
|
|
|
|
|
|
PipelineOptions.PIPELINE_SCHEMA_CHANGE_BEHAVIOR, SchemaChangeBehavior.EVOLVE);
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
new PipelineDef(
|
|
|
|
new PipelineDef(
|
|
|
|
sourceDef,
|
|
|
|
sourceDef,
|
|
|
@ -191,6 +194,8 @@ class FlinkPipelineComposerITCase {
|
|
|
|
// Setup pipeline
|
|
|
|
// Setup pipeline
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
|
|
|
|
pipelineConfig.set(
|
|
|
|
|
|
|
|
PipelineOptions.PIPELINE_SCHEMA_CHANGE_BEHAVIOR, SchemaChangeBehavior.EVOLVE);
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
new PipelineDef(
|
|
|
|
new PipelineDef(
|
|
|
|
sourceDef,
|
|
|
|
sourceDef,
|
|
|
@ -313,6 +318,8 @@ class FlinkPipelineComposerITCase {
|
|
|
|
// Setup pipeline
|
|
|
|
// Setup pipeline
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
|
|
|
|
pipelineConfig.set(
|
|
|
|
|
|
|
|
PipelineOptions.PIPELINE_SCHEMA_CHANGE_BEHAVIOR, SchemaChangeBehavior.EVOLVE);
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
new PipelineDef(
|
|
|
|
new PipelineDef(
|
|
|
|
sourceDef,
|
|
|
|
sourceDef,
|
|
|
@ -373,6 +380,8 @@ class FlinkPipelineComposerITCase {
|
|
|
|
// Setup pipeline
|
|
|
|
// Setup pipeline
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
|
|
|
|
pipelineConfig.set(
|
|
|
|
|
|
|
|
PipelineOptions.PIPELINE_SCHEMA_CHANGE_BEHAVIOR, SchemaChangeBehavior.EVOLVE);
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
new PipelineDef(
|
|
|
|
new PipelineDef(
|
|
|
|
sourceDef,
|
|
|
|
sourceDef,
|
|
|
@ -441,6 +450,8 @@ class FlinkPipelineComposerITCase {
|
|
|
|
// Setup pipeline
|
|
|
|
// Setup pipeline
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
|
|
|
|
pipelineConfig.set(
|
|
|
|
|
|
|
|
PipelineOptions.PIPELINE_SCHEMA_CHANGE_BEHAVIOR, SchemaChangeBehavior.EVOLVE);
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
new PipelineDef(
|
|
|
|
new PipelineDef(
|
|
|
|
sourceDef,
|
|
|
|
sourceDef,
|
|
|
@ -496,6 +507,8 @@ class FlinkPipelineComposerITCase {
|
|
|
|
// Setup pipeline
|
|
|
|
// Setup pipeline
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
|
|
|
|
pipelineConfig.set(
|
|
|
|
|
|
|
|
PipelineOptions.PIPELINE_SCHEMA_CHANGE_BEHAVIOR, SchemaChangeBehavior.EVOLVE);
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
new PipelineDef(
|
|
|
|
new PipelineDef(
|
|
|
|
sourceDef,
|
|
|
|
sourceDef,
|
|
|
@ -569,6 +582,8 @@ class FlinkPipelineComposerITCase {
|
|
|
|
// Setup pipeline
|
|
|
|
// Setup pipeline
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
|
|
|
|
pipelineConfig.set(
|
|
|
|
|
|
|
|
PipelineOptions.PIPELINE_SCHEMA_CHANGE_BEHAVIOR, SchemaChangeBehavior.EVOLVE);
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
new PipelineDef(
|
|
|
|
new PipelineDef(
|
|
|
|
sourceDef,
|
|
|
|
sourceDef,
|
|
|
@ -766,6 +781,8 @@ class FlinkPipelineComposerITCase {
|
|
|
|
// Setup pipeline
|
|
|
|
// Setup pipeline
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
|
|
|
|
pipelineConfig.set(
|
|
|
|
|
|
|
|
PipelineOptions.PIPELINE_SCHEMA_CHANGE_BEHAVIOR, SchemaChangeBehavior.EVOLVE);
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
new PipelineDef(
|
|
|
|
new PipelineDef(
|
|
|
|
sourceDef,
|
|
|
|
sourceDef,
|
|
|
@ -972,6 +989,8 @@ class FlinkPipelineComposerITCase {
|
|
|
|
// Setup pipeline
|
|
|
|
// Setup pipeline
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
|
|
|
|
pipelineConfig.set(
|
|
|
|
|
|
|
|
PipelineOptions.PIPELINE_SCHEMA_CHANGE_BEHAVIOR, SchemaChangeBehavior.EVOLVE);
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
new PipelineDef(
|
|
|
|
new PipelineDef(
|
|
|
|
sourceDef,
|
|
|
|
sourceDef,
|
|
|
@ -1035,6 +1054,8 @@ class FlinkPipelineComposerITCase {
|
|
|
|
// Setup pipeline
|
|
|
|
// Setup pipeline
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
Configuration pipelineConfig = new Configuration();
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
pipelineConfig.set(PipelineOptions.PIPELINE_PARALLELISM, 1);
|
|
|
|
|
|
|
|
pipelineConfig.set(
|
|
|
|
|
|
|
|
PipelineOptions.PIPELINE_SCHEMA_CHANGE_BEHAVIOR, SchemaChangeBehavior.EVOLVE);
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
PipelineDef pipelineDef =
|
|
|
|
new PipelineDef(
|
|
|
|
new PipelineDef(
|
|
|
|
sourceDef,
|
|
|
|
sourceDef,
|
|
|
|