提交 5a7237cc 编写于 作者: A Alexey Milovidov

Miscellaneous

上级 e9af289b
......@@ -23,12 +23,7 @@ namespace ErrorCodes
/// where N >= 1.
///
/// For all 1 <= i <= N, "cond_i" has type UInt8.
/// Types of all the branches "then_i" and "else" are either of the following:
/// - numeric types for which there exists a common type;
/// - dates;
/// - dates with time;
/// - strings;
/// - arrays of such types.
/// Types of all the branches "then_i" and "else" have a common type.
///
/// Additionally the arguments, conditions or branches, support nullable types
/// and the NULL value, with a NULL condition treated as false.
......
......@@ -223,8 +223,8 @@ static void checkKeyExpression(const ExpressionActions & expr, const Block & sam
void MergeTreeData::setPrimaryKeyIndicesAndColumns(
const ASTPtr &new_order_by_ast, ASTPtr new_primary_key_ast,
const ColumnsDescription &new_columns, const IndicesDescription &indices_description, bool only_check)
const ASTPtr & new_order_by_ast, const ASTPtr & new_primary_key_ast,
const ColumnsDescription & new_columns, const IndicesDescription & indices_description, bool only_check)
{
if (!new_order_by_ast)
throw Exception("ORDER BY cannot be empty", ErrorCodes::BAD_ARGUMENTS);
......
......@@ -732,9 +732,9 @@ private:
/// The same for clearOldTemporaryDirectories.
std::mutex clear_old_temporary_directories_mutex;
void setPrimaryKeyIndicesAndColumns(const ASTPtr &new_order_by_ast, ASTPtr new_primary_key_ast,
const ColumnsDescription &new_columns,
const IndicesDescription &indices_description, bool only_check = false);
void setPrimaryKeyIndicesAndColumns(const ASTPtr & new_order_by_ast, const ASTPtr & new_primary_key_ast,
const ColumnsDescription & new_columns,
const IndicesDescription & indices_description, bool only_check = false);
void initPartitionKey();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册