Update CSVRowInputFormat.

This commit is contained in:
Nikolai Kochetov 2019-07-30 21:21:12 +03:00
parent d4da486b51
commit ee3a93bab5

View File

@ -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;
}
}