mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
19 lines
587 B
C++
19 lines
587 B
C++
#include <Processors/QueryPlan/BuildQueryPipelineSettings.h>
|
|
#include <Core/Settings.h>
|
|
#include <Interpreters/ExpressionActions.h>
|
|
#include <Interpreters/Context.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
BuildQueryPipelineSettings BuildQueryPipelineSettings::fromContext(ContextPtr from)
|
|
{
|
|
BuildQueryPipelineSettings settings;
|
|
settings.actions_settings = ExpressionActionsSettings::fromSettings(from->getSettingsRef(), CompileExpressions::yes);
|
|
settings.process_list_element = from->getProcessListElement();
|
|
settings.progress_callback = from->getProgressCallback();
|
|
return settings;
|
|
}
|
|
|
|
}
|