1#pragma once
2
3#include <string>
4
5
6namespace DB
7{
8
9class IAST;
10
11/// Get the cluster name from AST.
12/** The name of the cluster is the name of the tag in the xml configuration.
13 * Usually it is parsed as an identifier. That is, it can contain underscores, but can not contain hyphens,
14 * provided that the identifier is not in backquotes.
15 * But in xml, as a tag name, it's more common to use hyphens.
16 * This name will be parsed as an expression with an operator minus - not at all what you need.
17 * Therefore, consider this case separately.
18 */
19std::string getClusterName(const IAST & node);
20
21}
22