remove verify from csv

This commit is contained in:
Jihoon Son 2019-11-10 12:01:38 -08:00
parent ea2c8f9db6
commit 1ea7758489
1 changed files with 0 additions and 8 deletions

View File

@ -69,7 +69,6 @@ public class CsvReader extends TextReader
for (String column : this.columns) {
Preconditions.checkArgument(!column.contains(","), "Column[%s] has a comma, it cannot", column);
}
verify(this.columns, inputRowSchema.getDimensionsSpec().getDimensionNames());
} else {
Preconditions.checkArgument(
findColumnsFromHeader,
@ -118,13 +117,6 @@ public class CsvReader extends TextReader
}
}
public static void verify(List<String> columns, List<String> dimensionNames)
{
for (String columnName : dimensionNames) {
Preconditions.checkArgument(columns.contains(columnName), "column[%s] not in columns.", columnName);
}
}
public static List<String> findOrCreateColumnNames(List<String> parsedLine)
{
final List<String> columns = new ArrayList<>(parsedLine.size());