40907 Parameterized views as table functions

Implementation
* Fix for Build fails - updated conversion of Field to String and includes
This commit is contained in:
Smita Kulkarni 2022-09-24 12:01:18 +02:00 committed by SmitaRKulkarni
parent 038352bfce
commit 1e3be976ad
4 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,10 @@
#include <Interpreters/StorageID.h> #include <Interpreters/StorageID.h>
#include <IO/Operators.h> #include <IO/Operators.h>
#include <Parsers/ASTLiteral.h> #include <Parsers/ASTLiteral.h>
#include <Parsers/ASTQueryParameter.h>
#include <Common/FieldVisitorToString.h>
#include <queue>
namespace DB namespace DB
{ {
@ -513,7 +516,7 @@ NameToNameMap ASTSelectQuery::getQueryParameterValues() const
if (auto literal = expression_list->children[1]->as<ASTLiteral>()) if (auto literal = expression_list->children[1]->as<ASTLiteral>())
{ {
parameter_values[identifier->name()] = toString(literal->value); parameter_values[identifier->name()] = convertFieldToString(literal->value);
} }
} }
} }

View File

@ -2,9 +2,6 @@
#include <Parsers/IAST.h> #include <Parsers/IAST.h>
#include <Core/Names.h> #include <Core/Names.h>
#include <queue>
#include <Parsers/ASTQueryParameter.h>
#include <Core/Field.h>
namespace DB namespace DB
{ {

View File

@ -3,7 +3,9 @@
#include <Common/typeid_cast.h> #include <Common/typeid_cast.h>
#include <Parsers/SelectUnionMode.h> #include <Parsers/SelectUnionMode.h>
#include <IO/Operators.h> #include <IO/Operators.h>
#include <Parsers/ASTSelectQuery.h>
#include <queue>
#include <iostream> #include <iostream>
namespace DB namespace DB

View File

@ -2,8 +2,6 @@
#include <Parsers/ASTQueryWithOutput.h> #include <Parsers/ASTQueryWithOutput.h>
#include <Parsers/SelectUnionMode.h> #include <Parsers/SelectUnionMode.h>
#include <queue>
#include <Parsers/ASTSelectQuery.h>
namespace DB namespace DB
{ {