in c3r-sdk-core/src/main/java/com/amazonaws/c3r/config/PositionalTableSchema.java [138:153]
public void validate() {
if (getHeaderRowFlag() != null && getHeaderRowFlag()) {
throw new C3rIllegalArgumentException("Positional Table Schemas cannot use data containing a header row");
}
if (columns == null || columns.isEmpty()) {
throw new C3rIllegalArgumentException("At least one data column must provided in the config file.");
}
if (mappedColumns == null) {
mappedColumns = mapPositionalColumns();
}
if (sourceHeaders == null) {
sourceHeaders = IntStream.range(0, columns.size()).mapToObj(ColumnHeader::of)
.collect(Collectors.toUnmodifiableList());
}
super.validate();
}