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
ee3a93bab5
commit
e8b643e032
@ -145,6 +145,7 @@ void CSVRowInputFormat::readPrefix()
|
||||
|
||||
size_t num_columns = data_types.size();
|
||||
String tmp;
|
||||
auto & header = getPort().getHeader();
|
||||
|
||||
if (with_names)
|
||||
{
|
||||
@ -154,7 +155,7 @@ void CSVRowInputFormat::readPrefix()
|
||||
{
|
||||
/// Look at the file header to see which columns we have there.
|
||||
/// The missing columns are filled with defaults.
|
||||
read_columns.assign(getPort().getHeader().columns(), false);
|
||||
read_columns.assign(header.columns(), false);
|
||||
do
|
||||
{
|
||||
String column_name;
|
||||
|
Loading…
Reference in New Issue
Block a user