2014-09-23 16:02:04 +00:00
|
|
|
#pragma once
|
|
|
|
|
2016-05-28 15:42:22 +00:00
|
|
|
#include <memory>
|
2014-09-23 16:02:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2016-01-13 00:32:59 +00:00
|
|
|
class IAST;
|
|
|
|
class ASTIdentifier;
|
|
|
|
class Context;
|
2014-09-23 16:02:04 +00:00
|
|
|
|
2016-01-13 00:32:59 +00:00
|
|
|
/** \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 */
|
2016-05-28 15:42:22 +00:00
|
|
|
ASTIdentifier & reinterpretAsIdentifier(std::shared_ptr<IAST> & expr, const Context & context);
|
2014-09-23 16:02:04 +00:00
|
|
|
|
|
|
|
}
|