mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-06 15:42:39 +00:00
495c6e03aa
* Replace all Context references with std::weak_ptr * Fix shared context captured by value * Fix build * Fix Context with named sessions * Fix copy context * Fix gcc build * Merge with master and fix build * Fix gcc-9 build
26 lines
721 B
C++
26 lines
721 B
C++
#include <Interpreters/ExpressionActionsSettings.h>
|
|
|
|
#include <Core/Settings.h>
|
|
#include <Interpreters/Context.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
ExpressionActionsSettings ExpressionActionsSettings::fromSettings(const Settings & from)
|
|
{
|
|
ExpressionActionsSettings settings;
|
|
settings.compile_expressions = from.compile_expressions;
|
|
settings.min_count_to_compile_expression = from.min_count_to_compile_expression;
|
|
settings.max_temporary_columns = from.max_temporary_columns;
|
|
settings.max_temporary_non_const_columns = from.max_temporary_non_const_columns;
|
|
|
|
return settings;
|
|
}
|
|
|
|
ExpressionActionsSettings ExpressionActionsSettings::fromContext(ContextPtr from)
|
|
{
|
|
return fromSettings(from->getSettingsRef());
|
|
}
|
|
|
|
}
|