Skip to content

Commit

Permalink
Fix a message for schema index fields misconfiguration during model l…
Browse files Browse the repository at this point in the history
…oad validation
  • Loading branch information
Nuno Diegues committed Nov 15, 2018
1 parent ee51677 commit 78e0abe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private List<FieldSchema> checkFieldSchemas(final List<FieldSchema> fieldSchemas
// check if indexes are a continuous list with no duplicated elements, i.e., all indexes are unique, are sorted
// and there are no intermediary indexes missing.
Preconditions.checkArgument(indexes.equals(IntStream.range(0, indexes.size()).boxed().collect(Collectors.toList())),
"field schemas be sorted by increasing index, with no duplicated nor missing elements");
"schema fields must be sorted by increasing index, with no duplicated nor missing index elements");

Preconditions.checkArgument(
fieldSchemas.size() == fieldSchemas.stream().map(FieldSchema::getFieldName).collect(Collectors.toSet()).size(),
Expand Down

0 comments on commit 78e0abe

Please sign in to comment.