Connect code.

This commit is contained in:
Nikolai Kochetov 2024-05-23 17:53:17 +00:00
parent bee3c50ecd
commit a19472ddd5

View File

@ -78,9 +78,9 @@ std::unique_ptr<QueryPlan> createLocalPlan(
new_context->setSetting("enable_positional_arguments", Field(false));
auto interpreter = InterpreterSelectQueryAnalyzer(query_ast, new_context, select_query_options);
// std::cerr << interpreter.getQueryTree()->dumpTree() << std::endl;
query_plan = std::make_unique<QueryPlan>(std::move(interpreter).extractQueryPlan());
WriteBufferFromOwnString buf;
query_plan->explainPlan(buf, {.header=true, .actions=true});
// query_plan = std::make_unique<QueryPlan>(std::move(interpreter).extractQueryPlan());
// WriteBufferFromOwnString buf;
// query_plan->explainPlan(buf, {.header=true, .actions=true});
// std::cerr << buf.str() << std::endl;
}
else