Update src/DataTypes/Serializations/SerializationBool.cpp

Co-authored-by: Kruglov Pavel <48961922+Avogar@users.noreply.github.com>
This commit is contained in:
kevin wan 2021-11-19 20:28:17 +08:00 committed by GitHub
parent ec7e99ef82
commit 3dd3e42c9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ void SerializationBool::serializeTextEscaped(const IColumn & column, size_t row_
void SerializationBool::deserializeTextEscaped(IColumn & column, ReadBuffer & istr, const FormatSettings & settings) const
{
ColumnUInt8 *col = typeid_cast<ColumnUInt8 *>(&column);
ColumnUInt8 * col = typeid_cast<ColumnUInt8 *>(&column);
if (!col)
{
throw Exception("Bool type can only deserialize columns of type UInt8." + column.getName(), ErrorCodes::ILLEGAL_COLUMN);