mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
fix after merge
This commit is contained in:
parent
9a45c136b8
commit
0a8fb05ece
@ -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()
|
||||
{
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user