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
|
|
|
|
{
|
|
|
|
|
2021-12-02 17:18:52 +00:00
|
|
|
BuildQueryPipelineSettings BuildQueryPipelineSettings::fromContext(ContextPtr from)
|
2021-03-04 17:38:12 +00:00
|
|
|
{
|
|
|
|
BuildQueryPipelineSettings settings;
|
2021-12-02 17:18:52 +00:00
|
|
|
settings.actions_settings = ExpressionActionsSettings::fromSettings(from->getSettingsRef(), CompileExpressions::yes);
|
|
|
|
settings.process_list_element = from->getProcessListElement();
|
2021-12-22 22:13:45 +00:00
|
|
|
settings.progress_callback = from->getProgressCallback();
|
2021-03-04 17:38:12 +00:00
|
|
|
return settings;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|