fix bad cast

This commit is contained in:
Andrew Onyshchuk 2020-01-10 22:26:12 -06:00 committed by oandrew
parent 4c13317fba
commit bfc610275d

View File

@ -293,7 +293,7 @@ AvroDeserializer::DeserializeFn AvroDeserializer::createDeserializeFn(avro::Node
}
if (target.isEnum())
{
const auto & enum_type = assert_cast<const IDataTypeEnum &>(*target_type);
const auto & enum_type = dynamic_cast<const IDataTypeEnum &>(*target_type);
std::vector<Field> symbol_mapping;
for (size_t i = 0; i < root_node->names(); i++)
{