mirror of https://github.com/apache/druid.git
remove verify from csv
This commit is contained in:
parent
ea2c8f9db6
commit
1ea7758489
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue