ClickHouse/src/Interpreters/replaceAliasColumnsInQuery.h

22 lines
528 B
C++
Raw Normal View History

2020-12-12 16:42:15 +00:00
#pragma once
#include <Core/Names.h>
#include <Interpreters/Context_fwd.h>
2020-12-12 16:42:15 +00:00
#include <Parsers/IAST_fwd.h>
2021-10-02 07:13:14 +00:00
#include <base/types.h>
2020-12-12 16:42:15 +00:00
namespace DB
{
class ColumnsDescription;
2021-07-18 15:27:19 +00:00
/// Replace storage alias columns in select query if possible. Return true if the query is changed.
bool replaceAliasColumnsInQuery(
ASTPtr & ast,
const ColumnsDescription & columns,
const NameToNameMap & array_join_result_to_source,
ContextPtr context,
const std::unordered_set<IAST *> & excluded_nodes = {});
2020-12-12 16:42:15 +00:00
}