Skip to content

Commit 72a90a9

Browse files
committed
remove groupId check
1 parent 7981f63 commit 72a90a9

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/kafkaSource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ CREATE TABLE tableName(
3939
|zookeeperQuorum | kafka zk地址信息(多个之间用逗号分隔)|||
4040
|topic | 需要读取的 topic 名称|||
4141
|topicIsPattern | topic是否是正则表达式格式|否| false
42-
|groupId | 需要读取的 groupId 名称|||
42+
|groupId | 需要读取的 groupId 名称|||
4343
|offsetReset | 读取的topic 的offset初始位置[latest\|earliest\|指定offset值({"0":12312,"1":12321,"2":12312},{"partition_no":offset_value})]||latest|
4444
|parallelism | 并行度设置||1|
4545

kafka09/kafka09-source/src/main/java/com/dtstack/flink/sql/source/kafka/table/KafkaSourceTableInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void setOffset(String offset) {
121121
public boolean check() {
122122
Preconditions.checkNotNull(bootstrapServers, "kafka of bootstrapServers is required");
123123
Preconditions.checkNotNull(topic, "kafka of topic is required");
124-
Preconditions.checkNotNull(groupId, "kafka of groupId is required");
124+
//Preconditions.checkNotNull(groupId, "kafka of groupId is required");
125125
Preconditions.checkState(offsetReset.equalsIgnoreCase("latest")
126126
|| offsetReset.equalsIgnoreCase("latest"), "kafka of offsetReset set fail");
127127

kafka10/kafka10-source/src/main/java/com/dtstack/flink/sql/source/kafka/table/KafkaSourceTableInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public void setTopicIsPattern(Boolean topicIsPattern) {
121121
public boolean check() {
122122
Preconditions.checkNotNull(bootstrapServers, "kafka of bootstrapServers is required");
123123
Preconditions.checkNotNull(topic, "kafka of topic is required");
124-
Preconditions.checkNotNull(groupId, "kafka of groupId is required");
124+
//Preconditions.checkNotNull(groupId, "kafka of groupId is required");
125125
Preconditions.checkState(offsetReset.equalsIgnoreCase("latest")
126126
|| offsetReset.equalsIgnoreCase("latest"), "kafka of offsetReset set fail");
127127

kafka11/kafka11-source/src/main/java/com/dtstack/flink/sql/source/kafka/table/KafkaSourceTableInfo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public void setOffset(String offset) {
122122
public boolean check() {
123123
Preconditions.checkNotNull(bootstrapServers, "kafka of bootstrapServers is required");
124124
Preconditions.checkNotNull(topic, "kafka of topic is required");
125-
Preconditions.checkNotNull(groupId, "kafka of groupId is required");
125+
//Preconditions.checkNotNull(groupId, "kafka of groupId is required");
126126
Preconditions.checkState(offsetReset.equalsIgnoreCase("latest")
127127
|| offsetReset.equalsIgnoreCase("latest"), "kafka of offsetReset set fail");
128128

0 commit comments

Comments
 (0)