fix after merge

This commit is contained in:
Yakov Olkhovskiy 2024-08-10 16:23:23 +00:00
parent 9a45c136b8
commit 0a8fb05ece
2 changed files with 8 additions and 1 deletions

View File

@ -869,6 +869,13 @@ constexpr bool isInt64OrUInt64FieldType(Field::Types::Which t)
|| t == Field::Types::UInt64;
}
constexpr bool isInt64OrUInt64orBoolFieldType(Field::Types::Which t)
{
return t == Field::Types::Int64
|| t == Field::Types::UInt64
|| t == Field::Types::Bool;
}
template <typename T>
auto & Field::safeGet()
{

View File

@ -132,7 +132,7 @@ std::string DiskFomAST::createCustomDisk(const ASTPtr & disk_function_ast, Conte
FlattenDiskConfigurationVisitor::Data data{context, attach};
FlattenDiskConfigurationVisitor{data}.visit(ast);
return assert_cast<const ASTLiteral &>(*ast).value.get<String>();
return assert_cast<const ASTLiteral &>(*ast).value.safeGet<String>();
}
void DiskFomAST::ensureDiskIsNotCustom(const std::string & disk_name, ContextPtr context)