Update AvroRowInputFormat.cpp

This commit is contained in:
alexey-milovidov 2020-08-21 18:34:15 +03:00 committed by GitHub
parent a6a18b62f9
commit b71ef6db22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -702,7 +702,8 @@ static uint32_t readConfluentSchemaId(ReadBuffer & in)
readBinaryBigEndian(magic, in);
readBinaryBigEndian(schema_id, in);
}
catch(Exception & e) {
catch (const Exception & e)
{
/* empty or incomplete message without Avro Confluent magic number or schema id */
throw Exception("Missing AvroConfluent magic byte or schema identifier.", ErrorCodes::INCORRECT_DATA);
}