yuxiqian commented on code in PR #3339:
URL: https://github.com/apache/flink-cdc/pull/3339#discussion_r1688986645
##########
flink-cdc-common/src/main/java/org/apache/flink/cdc/common/sink/MetadataApplier.java:
##########
@@ -19,13 +19,22 @@
import org.apache.flink.cdc.common.annotation.PublicEvolving;
import org.apache.flink.cdc.common.event.SchemaChangeEvent;
+import org.apache.flink.cdc.common.event.SchemaChangeEventType;
+import org.apache.flink.cdc.common.exceptions.SchemaEvolveException;
import java.io.Serializable;
+import java.util.Set;
/** {@code MetadataApplier} is used to apply metadata changes to external
systems. */
@PublicEvolving
public interface MetadataApplier extends Serializable {
+ /** Checks if this metadata applier should handle this event type. */
+ boolean acceptsSchemaEvolutionType(SchemaChangeEventType
schemaChangeEventType);
+
+ /** Checks what kind of schema change events downstream can handle. */
+ Set<SchemaChangeEventType> getSupportedSchemaEvolutionTypes();
+
Review Comment:
I've tried to add reasonable `default` implementations for new methods to
break less downstream code.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]