MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getSQL

Method getSQL

src/Storages/TimeSeries/PrometheusQueryToSQL/Converter.cpp:122–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121
122ASTPtr Converter::getSQL() const
123{
124 ConverterContext context{promql_tree, settings};
125 auto query_piece = visitNode(promql_tree->getRoot(), context);
126 query_piece.type = result_type;
127 return finalizeSQL(std::move(query_piece), context);
128}
129
130}

Callers 2

readImplMethod · 0.80
executePromQLQueryMethod · 0.80

Calls 3

visitNodeFunction · 0.85
finalizeSQLFunction · 0.85
getRootMethod · 0.45

Tested by

no test coverage detected