mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-12 10:34:21 +00:00
Update CSVRowInputFormat.
This commit is contained in:
parent
d4da486b51
commit
ee3a93bab5
@ -182,6 +182,16 @@ void CSVRowInputFormat::readPrefix()
|
||||
else
|
||||
skipRow(in, format_settings.csv, num_columns);
|
||||
}
|
||||
|
||||
/// The default: map each column of the file to the column of the table with
|
||||
/// the same index.
|
||||
read_columns.assign(header.columns(), true);
|
||||
column_indexes_for_input_fields.resize(header.columns());
|
||||
|
||||
for (size_t i = 0; i < column_indexes_for_input_fields.size(); ++i)
|
||||
{
|
||||
column_indexes_for_input_fields[i] = i;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user