mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-12 10:34:21 +00:00
33 lines
737 B
C++
33 lines
737 B
C++
#pragma once
|
|
|
|
#include <Interpreters/Context_fwd.h>
|
|
|
|
#include <cstddef>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
struct Settings;
|
|
|
|
enum class CompileExpressions: uint8_t
|
|
{
|
|
no = 0,
|
|
yes = 1,
|
|
};
|
|
|
|
struct ExpressionActionsSettings
|
|
{
|
|
bool can_compile_expressions = false;
|
|
size_t min_count_to_compile_expression = 0;
|
|
|
|
size_t max_temporary_columns = 0;
|
|
size_t max_temporary_non_const_columns = 0;
|
|
|
|
CompileExpressions compile_expressions = CompileExpressions::no;
|
|
|
|
static ExpressionActionsSettings fromSettings(const Settings & from, CompileExpressions compile_expressions = CompileExpressions::no);
|
|
static ExpressionActionsSettings fromContext(ContextPtr from, CompileExpressions compile_expressions = CompileExpressions::no);
|
|
};
|
|
|
|
}
|