Commit 51a1db93 authored by Jonas Waeber's avatar Jonas Waeber
Browse files

change identifier index

now users can begin counting at 1 for the identifier column instead
of 0. this makes it consistent with the header line index.
parent 8c9d1ebe
Pipeline #8293 failed with stages
in 2 minutes and 24 seconds
......@@ -140,7 +140,8 @@ class KafkaTopology(private val settings: SettingsLoader) {
}
continue
}
val identifier = line[identifierIndex]
// the +1 ensures, that users can start columns beginning at 1!
val identifier = line[identifierIndex + 1]
when {
identifier.isEmpty() -> {
throw InvalidInputException("The unique identifier in column $identifierIndex in row $count is empty!")
......
......@@ -7,7 +7,7 @@ app:
sheet: ${SHEET_INDEX:?user}
header:
count: ${HEADER_COUNT:?user}
line: ${USED_HEADER_LINE_INDEX:?user}
line: ${HEADER_LINE_INDEX:?user}
identifier: ${IDENTIFIER_INDEX:?user}
kafka:
producer:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment