mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
20 lines
499 B
C++
20 lines
499 B
C++
#pragma once
|
|
|
|
#include <Interpreters/Context_fwd.h>
|
|
#include <Parsers/IAST_fwd.h>
|
|
#include <common/types.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class NamesAndTypesList;
|
|
|
|
/// It will produce an expression with CAST to get an AST with the required type.
|
|
ASTPtr addTypeConversionToAST(ASTPtr && ast, const String & type_name);
|
|
|
|
// If same type, then ignore the wrapper of CAST function
|
|
ASTPtr addTypeConversionToAST(ASTPtr && ast, const String & type_name, const NamesAndTypesList & all_columns, ContextPtr context);
|
|
|
|
}
|