fix if statement code style check

This commit is contained in:
tao jiang 2020-08-20 18:42:14 +08:00
parent 70ef84ee4b
commit 189c284597
2 changed files with 4 additions and 4 deletions

View File

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

View File

@ -145,7 +145,7 @@ bool RowInputFormatWithDiagnosticInfo::deserializeFieldAndPrintDiagnosticInfo(co
{
std::rethrow_exception(exception);
}
catch (DB::Exception e)
catch (const DB::Exception & e)
{
out << e.what();
}