提交 7ef286cc 编写于 作者: A Alexey Milovidov

Preparation [#STATINFRA-7868].

上级 440f0ccf
......@@ -18,16 +18,22 @@ namespace OLAP
{
QueryConverter::QueryConverter(Poco::Util::AbstractConfiguration & config)
: QueryConverter(
config.getString("olap_compatibility.table_for_single_counter"),
config.getString("olap_compatibility.table_for_all_counters"))
{
table_for_single_counter = config.getString("olap_compatibility.table_for_single_counter");
table_for_all_counters = config.getString("olap_compatibility.table_for_all_counters");
}
QueryConverter::QueryConverter(const String & table_for_single_counter, const String & table_for_all_counters)
: table_for_single_counter(table_for_single_counter), table_for_all_counters(table_for_all_counters)
{
fillFormattedAttributeMap();
fillNumericAttributeMap();
fillFormattingAggregatedAttributeMap();
attribute_metadatas = GetOLAPAttributeMetadata();
}
static std::string firstWord(std::string s)
{
for (size_t i = 0; i < s.length(); ++i)
......
......@@ -16,6 +16,7 @@ class QueryConverter
{
public:
QueryConverter(Poco::Util::AbstractConfiguration & config);
QueryConverter(const String & table_for_single_counter, const String & table_for_all_counters);
/// Получает из запроса в формате OLAP-server запрос и настройки для clickhouse.
void OLAPServerQueryToClickHouse(const QueryParseResult & query, Context & inout_context, std::string & out_query) const;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册