mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-12 02:23:14 +00:00
19 lines
401 B
C++
19 lines
401 B
C++
#pragma once
|
|
|
|
#include <Poco/SharedPtr.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class IAST;
|
|
class ASTIdentifier;
|
|
class Context;
|
|
|
|
/** \brief if `expr` is not already ASTIdentifier evaluates it
|
|
* and replaces by a new ASTIdentifier with the result of evaluation as its name.
|
|
* `expr` must evaluate to a String type */
|
|
ASTIdentifier & reinterpretAsIdentifier(Poco::SharedPtr<IAST> & expr, const Context & context);
|
|
|
|
}
|