You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by GitBox <gi...@apache.org> on 2019/03/07 11:07:56 UTC
[GitHub] [incubator-doris] morningman commented on a change in pull request
#703: Change the relationship between txn and task
morningman commented on a change in pull request #703: Change the relationship between txn and task
URL: https://github.com/apache/incubator-doris/pull/703#discussion_r263333553
##########
File path: fe/src/main/java/org/apache/doris/analysis/CreateRoutineLoadStmt.java
##########
@@ -326,6 +335,16 @@ private void checkKafkaCustomProperties() throws AnalysisException {
}
}
}
+ // check offsets
+ // Todo(ml)
+ final String kafkaOffsetsString = customProperties.get(KAFKA_OFFSETS_PROPERTY);
+ if (kafkaOffsetsString != null) {
+ kafkaOffsets = new ArrayList<>();
+ String[] kafkaOffsetsStringList = customProperties.get(KAFKA_OFFSETS_PROPERTY).split(",");
+ for (String s : kafkaOffsetsStringList) {
+ kafkaOffsets.add(Long.valueOf(s));
Review comment:
You should check the number format. And also check whether the number of specified offsets equals to number of specified partitions
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@doris.apache.org
For additional commands, e-mail: dev-help@doris.apache.org