ClickHouse/src/Processors/QueryPlan/BuildQueryPipelineSettings.cpp

19 lines
587 B
C++
Raw Normal View History

2021-03-04 17:38:12 +00:00
#include <Processors/QueryPlan/BuildQueryPipelineSettings.h>
#include <Core/Settings.h>
#include <Interpreters/ExpressionActions.h>
#include <Interpreters/Context.h>
namespace DB
{
BuildQueryPipelineSettings BuildQueryPipelineSettings::fromContext(ContextPtr from)
2021-03-04 17:38:12 +00:00
{
BuildQueryPipelineSettings settings;
settings.actions_settings = ExpressionActionsSettings::fromSettings(from->getSettingsRef(), CompileExpressions::yes);
settings.process_list_element = from->getProcessListElement();
settings.progress_callback = from->getProgressCallback();
2021-03-04 17:38:12 +00:00
return settings;
}
}