mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
fix bad cast
This commit is contained in:
parent
4c13317fba
commit
bfc610275d
@ -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++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user