Skip to content

Commit

Permalink
0002147: Add validation and better error message if the parsed tokens…
Browse files Browse the repository at this point in the history
… doesn't match the column count of the last parsed table
  • Loading branch information
chenson42 committed Jan 20, 2015
1 parent 9e15a92 commit 65f9105
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -171,7 +171,7 @@ public Object readNext() {
data.setDataEventType(DataEventType.UPDATE);
int columnCount = context.getLastParsedTable().getColumnCount();
if (tokens.length <= columnCount) {
String msg = String.format("Invalid state while parsing row data. "
String msg = String.format("Invalid state while parsing csv data. "
+ "The number of columns reported for table '%s' don't match up with the token data: {}",
context.getLastParsedTable().getFullyQualifiedTableName(), ArrayUtils.toString(tokens));
throw new IllegalStateException(msg);
Expand Down

0 comments on commit 65f9105

Please sign in to comment.