mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Fix style
This commit is contained in:
parent
6535301888
commit
702ddff5f6
@ -113,7 +113,7 @@ NamesAndTypesList IRowSchemaReader::readSchema()
|
|||||||
"Most likely setting input_format_max_rows_to_read_for_schema_inference is set to 0");
|
"Most likely setting input_format_max_rows_to_read_for_schema_inference is set to 0");
|
||||||
|
|
||||||
DataTypes data_types = readRowAndGetDataTypes();
|
DataTypes data_types = readRowAndGetDataTypes();
|
||||||
|
|
||||||
/// Check that we read at list one column.
|
/// Check that we read at list one column.
|
||||||
if (data_types.empty())
|
if (data_types.empty())
|
||||||
throw Exception(ErrorCodes::EMPTY_DATA_PASSED, "Cannot read rows from the data");
|
throw Exception(ErrorCodes::EMPTY_DATA_PASSED, "Cannot read rows from the data");
|
||||||
@ -132,7 +132,7 @@ NamesAndTypesList IRowSchemaReader::readSchema()
|
|||||||
ErrorCodes::INCORRECT_DATA,
|
ErrorCodes::INCORRECT_DATA,
|
||||||
"The number of column names {} differs with the number of types {}", column_names.size(), data_types.size());
|
"The number of column names {} differs with the number of types {}", column_names.size(), data_types.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
for (size_t i = 0; i != column_names.size(); ++i)
|
for (size_t i = 0; i != column_names.size(); ++i)
|
||||||
{
|
{
|
||||||
auto hint_it = hints.find(column_names[i]);
|
auto hint_it = hints.find(column_names[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user