Skip to content

Commit

Permalink
[Fix][Kafka-Sink] fix kafka sink factory option rule (apache#6657)
Browse files Browse the repository at this point in the history
  • Loading branch information
lostinwind committed Apr 15, 2024
1 parent bdece86 commit 9b4fe62
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,9 @@ public String factoryIdentifier() {
@Override
public OptionRule optionRule() {
return OptionRule.builder()
.required(Config.FORMAT, Config.BOOTSTRAP_SERVERS)
.conditional(
Config.FORMAT,
Arrays.asList(
MessageFormat.JSON,
MessageFormat.CANAL_JSON,
MessageFormat.TEXT,
MessageFormat.OGG_JSON,
MessageFormat.AVRO),
Config.TOPIC)
.required(Config.TOPIC, Config.BOOTSTRAP_SERVERS)
.optional(
Config.FORMAT,
Config.KAFKA_CONFIG,
Config.ASSIGN_PARTITIONS,
Config.TRANSACTION_PREFIX,
Expand Down

0 comments on commit 9b4fe62

Please sign in to comment.