mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 13:32:13 +00:00
40907 Parameterized views as table functions
Implementation * Fix for Build fails - updated conversion of Field to String and includes
This commit is contained in:
parent
038352bfce
commit
1e3be976ad
@ -8,7 +8,10 @@
|
||||
#include <Interpreters/StorageID.h>
|
||||
#include <IO/Operators.h>
|
||||
#include <Parsers/ASTLiteral.h>
|
||||
#include <Parsers/ASTQueryParameter.h>
|
||||
#include <Common/FieldVisitorToString.h>
|
||||
|
||||
#include <queue>
|
||||
|
||||
namespace DB
|
||||
{
|
||||
@ -513,7 +516,7 @@ NameToNameMap ASTSelectQuery::getQueryParameterValues() const
|
||||
if (auto literal = expression_list->children[1]->as<ASTLiteral>())
|
||||
{
|
||||
|
||||
parameter_values[identifier->name()] = toString(literal->value);
|
||||
parameter_values[identifier->name()] = convertFieldToString(literal->value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2,9 +2,6 @@
|
||||
|
||||
#include <Parsers/IAST.h>
|
||||
#include <Core/Names.h>
|
||||
#include <queue>
|
||||
#include <Parsers/ASTQueryParameter.h>
|
||||
#include <Core/Field.h>
|
||||
|
||||
namespace DB
|
||||
{
|
||||
|
@ -3,7 +3,9 @@
|
||||
#include <Common/typeid_cast.h>
|
||||
#include <Parsers/SelectUnionMode.h>
|
||||
#include <IO/Operators.h>
|
||||
#include <Parsers/ASTSelectQuery.h>
|
||||
|
||||
#include <queue>
|
||||
#include <iostream>
|
||||
|
||||
namespace DB
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
#include <Parsers/ASTQueryWithOutput.h>
|
||||
#include <Parsers/SelectUnionMode.h>
|
||||
#include <queue>
|
||||
#include <Parsers/ASTSelectQuery.h>
|
||||
|
||||
namespace DB
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user