mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
fix if statement code style check
This commit is contained in:
parent
70ef84ee4b
commit
189c284597
@ -332,12 +332,12 @@ void TabSeparatedRowInputFormat::tryDeserializeField(const DataTypePtr & type, I
|
||||
if (column_indexes_for_input_fields[file_column])
|
||||
{
|
||||
// check null value for type is not nullable. don't cross buffer bound for simplicity, so maybe missing some case
|
||||
if(!type->isNullable() && !in.eof())
|
||||
if (!type->isNullable() && !in.eof())
|
||||
{
|
||||
if(*in.position() == '\\' && in.available() >= 2)
|
||||
if (*in.position() == '\\' && in.available() >= 2)
|
||||
{
|
||||
++in.position();
|
||||
if(*in.position() == 'N')
|
||||
if (*in.position() == 'N')
|
||||
{
|
||||
++in.position();
|
||||
throw Exception("unexpected Null value of not Nullable type", ErrorCodes::INCORRECT_DATA);
|
||||
|
@ -145,7 +145,7 @@ bool RowInputFormatWithDiagnosticInfo::deserializeFieldAndPrintDiagnosticInfo(co
|
||||
{
|
||||
std::rethrow_exception(exception);
|
||||
}
|
||||
catch (DB::Exception e)
|
||||
catch (const DB::Exception & e)
|
||||
{
|
||||
out << e.what();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user