2021-02-14 11:09:36 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-11-26 17:21:54 +00:00
|
|
|
#include <Parsers/IAST_fwd.h>
|
2021-02-14 11:09:36 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2022-09-19 14:03:22 +00:00
|
|
|
/// Rewrite function names to their canonical forms.
|
|
|
|
/// For example, rewrite (1) to (2)
|
|
|
|
/// (1) SELECT suM(1), AVG(2);
|
|
|
|
/// (2) SELECT sum(1), avg(2);
|
|
|
|
///
|
|
|
|
/// It's used to help projection query analysis matching function nodes by their canonical names.
|
|
|
|
/// See the comment of ActionsDAG::foldActionsByProjection for details.
|
2021-02-14 11:09:36 +00:00
|
|
|
struct FunctionNameNormalizer
|
|
|
|
{
|
2021-02-14 12:53:50 +00:00
|
|
|
static void visit(IAST *);
|
2021-02-14 11:09:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|