merge_row_policy - extra debug

This commit is contained in:
Ilya Golshtein 2023-05-29 11:15:42 +00:00
parent 0464b4fd06
commit 2acc4c223d
2 changed files with 6 additions and 0 deletions

View File

@ -861,6 +861,8 @@ InterpreterSelectQuery::InterpreterSelectQuery(
/// Add prewhere actions with alias columns and record needed columns from storage.
if (storage)
{
LOG_TRACE(log, "calling addPrewhereAliasActions");
addPrewhereAliasActions();
analysis_result.required_columns = required_columns;
}

View File

@ -732,9 +732,13 @@ QueryPipelineBuilderPtr ReadFromMerge::createSources(
if (auto * read_from_merge_tree = typeid_cast<ReadFromMergeTree *>(plan.getRootNode()->step.get()))
{
LOG_TRACE(&Poco::Logger::get("ReadFromMerge::createSources"), "ReadFromMergeTree detected");
size_t filters_dags_size = filter_dags.size();
for (size_t i = 0; i < filters_dags_size; ++i)
{
LOG_TRACE(&Poco::Logger::get("ReadFromMerge::createSources"), "adding filter");
read_from_merge_tree->addFilter(filter_dags[i], filter_nodes.nodes[i]);
}
}
builder = plan.buildQueryPipeline(