Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
f3c72daf
C
ClickHouse
项目概览
2dot5
/
ClickHouse
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClickHouse
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f3c72daf
编写于
12月 07, 2018
作者:
A
Alexey Milovidov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed name [#CLICKHOUSE-2]
上级
8ad92ad9
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
19 addition
and
19 deletion
+19
-19
dbms/src/AggregateFunctions/AggregateFunctionSequenceMatch.h
dbms/src/AggregateFunctions/AggregateFunctionSequenceMatch.h
+2
-2
dbms/src/Common/ErrorCodes.cpp
dbms/src/Common/ErrorCodes.cpp
+2
-2
dbms/src/Functions/FunctionBitTestMany.h
dbms/src/Functions/FunctionBitTestMany.h
+2
-2
dbms/src/Functions/FunctionsCoding.h
dbms/src/Functions/FunctionsCoding.h
+1
-1
dbms/src/Functions/FunctionsConversion.h
dbms/src/Functions/FunctionsConversion.h
+3
-3
dbms/src/Functions/FunctionsExternalModels.cpp
dbms/src/Functions/FunctionsExternalModels.cpp
+2
-2
dbms/src/Functions/FunctionsGeo.cpp
dbms/src/Functions/FunctionsGeo.cpp
+2
-2
dbms/src/Functions/caseWithExpression.cpp
dbms/src/Functions/caseWithExpression.cpp
+3
-3
dbms/src/Storages/MergeTree/ReplicatedMergeTreeBlockOutputStream.cpp
...orages/MergeTree/ReplicatedMergeTreeBlockOutputStream.cpp
+2
-2
未找到文件。
dbms/src/AggregateFunctions/AggregateFunctionSequenceMatch.h
浏览文件 @
f3c72daf
...
...
@@ -18,7 +18,7 @@ namespace DB
namespace
ErrorCodes
{
extern
const
int
TOO_SLOW
;
extern
const
int
TOO_
LESS
_ARGUMENTS_FOR_FUNCTION
;
extern
const
int
TOO_
FEW
_ARGUMENTS_FOR_FUNCTION
;
extern
const
int
TOO_MANY_ARGUMENTS_FOR_FUNCTION
;
extern
const
int
SYNTAX_ERROR
;
extern
const
int
BAD_ARGUMENTS
;
...
...
@@ -146,7 +146,7 @@ public:
if
(
!
sufficientArgs
(
arg_count
))
throw
Exception
{
"Aggregate function "
+
derived
().
getName
()
+
" requires at least 3 arguments."
,
ErrorCodes
::
TOO_
LESS
_ARGUMENTS_FOR_FUNCTION
};
ErrorCodes
::
TOO_
FEW
_ARGUMENTS_FOR_FUNCTION
};
if
(
arg_count
-
1
>
AggregateFunctionSequenceMatchData
::
max_events
)
throw
Exception
{
"Aggregate function "
+
derived
().
getName
()
+
" supports up to "
+
...
...
dbms/src/Common/ErrorCodes.cpp
浏览文件 @
f3c72daf
...
...
@@ -42,7 +42,7 @@ namespace ErrorCodes
extern
const
int
ATTEMPT_TO_READ_AFTER_EOF
=
32
;
extern
const
int
CANNOT_READ_ALL_DATA
=
33
;
extern
const
int
TOO_MANY_ARGUMENTS_FOR_FUNCTION
=
34
;
extern
const
int
TOO_
LESS
_ARGUMENTS_FOR_FUNCTION
=
35
;
extern
const
int
TOO_
FEW
_ARGUMENTS_FOR_FUNCTION
=
35
;
extern
const
int
BAD_ARGUMENTS
=
36
;
extern
const
int
UNKNOWN_ELEMENT_IN_AST
=
37
;
extern
const
int
CANNOT_PARSE_DATE
=
38
;
...
...
@@ -285,7 +285,7 @@ namespace ErrorCodes
extern
const
int
INCORRECT_INDEX
=
282
;
extern
const
int
UNKNOWN_DISTRIBUTED_PRODUCT_MODE
=
283
;
extern
const
int
UNKNOWN_GLOBAL_SUBQUERIES_METHOD
=
284
;
extern
const
int
TOO_
LESS
_LIVE_REPLICAS
=
285
;
extern
const
int
TOO_
FEW
_LIVE_REPLICAS
=
285
;
extern
const
int
UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE
=
286
;
extern
const
int
UNKNOWN_FORMAT_VERSION
=
287
;
extern
const
int
DISTRIBUTED_IN_JOIN_SUBQUERY_DENIED
=
288
;
...
...
dbms/src/Functions/FunctionBitTestMany.h
浏览文件 @
f3c72daf
...
...
@@ -16,7 +16,7 @@ namespace ErrorCodes
extern
const
int
ILLEGAL_DIVISION
;
extern
const
int
ILLEGAL_COLUMN
;
extern
const
int
ILLEGAL_TYPE_OF_ARGUMENT
;
extern
const
int
TOO_
LESS
_ARGUMENTS_FOR_FUNCTION
;
extern
const
int
TOO_
FEW
_ARGUMENTS_FOR_FUNCTION
;
}
...
...
@@ -36,7 +36,7 @@ public:
{
if
(
arguments
.
size
()
<
2
)
throw
Exception
{
"Number of arguments for function "
+
getName
()
+
" doesn't match: passed "
+
toString
(
arguments
.
size
())
+
", should be at least 2."
,
ErrorCodes
::
TOO_
LESS
_ARGUMENTS_FOR_FUNCTION
};
+
toString
(
arguments
.
size
())
+
", should be at least 2."
,
ErrorCodes
::
TOO_
FEW
_ARGUMENTS_FOR_FUNCTION
};
const
auto
&
first_arg
=
arguments
.
front
();
...
...
dbms/src/Functions/FunctionsCoding.h
浏览文件 @
f3c72daf
...
...
@@ -30,7 +30,7 @@ namespace DB
namespace
ErrorCodes
{
extern
const
int
TOO_
LESS
_ARGUMENTS_FOR_FUNCTION
;
extern
const
int
TOO_
FEW
_ARGUMENTS_FOR_FUNCTION
;
extern
const
int
LOGICAL_ERROR
;
}
...
...
dbms/src/Functions/FunctionsConversion.h
浏览文件 @
f3c72daf
...
...
@@ -57,7 +57,7 @@ namespace ErrorCodes
extern
const
int
CANNOT_PARSE_TEXT
;
extern
const
int
CANNOT_PARSE_UUID
;
extern
const
int
TOO_LARGE_STRING_SIZE
;
extern
const
int
TOO_
LESS
_ARGUMENTS_FOR_FUNCTION
;
extern
const
int
TOO_
FEW
_ARGUMENTS_FOR_FUNCTION
;
extern
const
int
LOGICAL_ERROR
;
extern
const
int
TYPE_MISMATCH
;
extern
const
int
CANNOT_CONVERT_TYPE
;
...
...
@@ -883,7 +883,7 @@ private:
{
if
(
!
arguments
.
size
())
throw
Exception
{
"Function "
+
getName
()
+
" expects at least 1 arguments"
,
ErrorCodes
::
TOO_
LESS
_ARGUMENTS_FOR_FUNCTION
};
ErrorCodes
::
TOO_
FEW
_ARGUMENTS_FOR_FUNCTION
};
const
IDataType
*
from_type
=
block
.
getByPosition
(
arguments
[
0
]).
type
.
get
();
...
...
@@ -897,7 +897,7 @@ private:
{
if
(
arguments
.
size
()
!=
2
)
throw
Exception
{
"Function "
+
getName
()
+
" expects 2 arguments for Decimal."
,
ErrorCodes
::
TOO_
LESS
_ARGUMENTS_FOR_FUNCTION
};
ErrorCodes
::
TOO_
FEW
_ARGUMENTS_FOR_FUNCTION
};
const
ColumnWithTypeAndName
&
scale_column
=
block
.
getByPosition
(
arguments
[
1
]);
UInt32
scale
=
extractToDecimalScale
(
scale_column
);
...
...
dbms/src/Functions/FunctionsExternalModels.cpp
浏览文件 @
f3c72daf
...
...
@@ -22,7 +22,7 @@ FunctionPtr FunctionModelEvaluate::create(const Context & context)
namespace
ErrorCodes
{
extern
const
int
ILLEGAL_TYPE_OF_ARGUMENT
;
extern
const
int
TOO_
LESS
_ARGUMENTS_FOR_FUNCTION
;
extern
const
int
TOO_
FEW
_ARGUMENTS_FOR_FUNCTION
;
extern
const
int
ILLEGAL_COLUMN
;
}
...
...
@@ -30,7 +30,7 @@ DataTypePtr FunctionModelEvaluate::getReturnTypeImpl(const DataTypes & arguments
{
if
(
arguments
.
size
()
<
2
)
throw
Exception
(
"Function "
+
getName
()
+
" expects at least 2 arguments"
,
ErrorCodes
::
TOO_
LESS
_ARGUMENTS_FOR_FUNCTION
);
ErrorCodes
::
TOO_
FEW
_ARGUMENTS_FOR_FUNCTION
);
if
(
!
isString
(
arguments
[
0
]))
throw
Exception
(
"Illegal type "
+
arguments
[
0
]
->
getName
()
+
" of first argument of function "
+
getName
()
...
...
dbms/src/Functions/FunctionsGeo.cpp
浏览文件 @
f3c72daf
...
...
@@ -29,7 +29,7 @@ namespace DB
namespace
ErrorCodes
{
extern
const
int
TOO_
LESS
_ARGUMENTS_FOR_FUNCTION
;
extern
const
int
TOO_
FEW
_ARGUMENTS_FOR_FUNCTION
;
extern
const
int
BAD_ARGUMENTS
;
extern
const
int
ILLEGAL_TYPE_OF_ARGUMENT
;
}
...
...
@@ -111,7 +111,7 @@ public:
{
if
(
arguments
.
size
()
<
2
)
{
throw
Exception
(
"Too few arguments"
,
ErrorCodes
::
TOO_
LESS
_ARGUMENTS_FOR_FUNCTION
);
throw
Exception
(
"Too few arguments"
,
ErrorCodes
::
TOO_
FEW
_ARGUMENTS_FOR_FUNCTION
);
}
auto
getMsgPrefix
=
[
this
](
size_t
i
)
{
return
"Argument "
+
toString
(
i
+
1
)
+
" for function "
+
getName
();
};
...
...
dbms/src/Functions/caseWithExpression.cpp
浏览文件 @
f3c72daf
...
...
@@ -9,7 +9,7 @@ namespace DB
namespace
ErrorCodes
{
extern
const
int
TOO_
LESS
_ARGUMENTS_FOR_FUNCTION
;
extern
const
int
TOO_
FEW
_ARGUMENTS_FOR_FUNCTION
;
}
/// Implements the CASE construction when it is
...
...
@@ -30,7 +30,7 @@ public:
{
if
(
!
args
.
size
())
throw
Exception
{
"Function "
+
getName
()
+
" expects at least 1 arguments"
,
ErrorCodes
::
TOO_
LESS
_ARGUMENTS_FOR_FUNCTION
};
ErrorCodes
::
TOO_
FEW
_ARGUMENTS_FOR_FUNCTION
};
/// See the comments in executeImpl() to understand why we actually have to
/// get the return type of a transform function.
...
...
@@ -48,7 +48,7 @@ public:
{
if
(
!
args
.
size
())
throw
Exception
{
"Function "
+
getName
()
+
" expects at least 1 argument"
,
ErrorCodes
::
TOO_
LESS
_ARGUMENTS_FOR_FUNCTION
};
ErrorCodes
::
TOO_
FEW
_ARGUMENTS_FOR_FUNCTION
};
/// In the following code, we turn the construction:
/// CASE expr WHEN val[0] THEN branch[0] ... WHEN val[N-1] then branch[N-1] ELSE branchN
...
...
dbms/src/Storages/MergeTree/ReplicatedMergeTreeBlockOutputStream.cpp
浏览文件 @
f3c72daf
...
...
@@ -18,7 +18,7 @@ namespace DB
namespace
ErrorCodes
{
extern
const
int
TOO_
LESS
_LIVE_REPLICAS
;
extern
const
int
TOO_
FEW
_LIVE_REPLICAS
;
extern
const
int
UNSATISFIED_QUORUM_FOR_PREVIOUS_WRITE
;
extern
const
int
CHECKSUM_DOESNT_MATCH
;
extern
const
int
UNEXPECTED_ZOOKEEPER_ERROR
;
...
...
@@ -76,7 +76,7 @@ void ReplicatedMergeTreeBlockOutputStream::checkQuorumPrecondition(zkutil::ZooKe
if
(
leader_election_stat
.
numChildren
<
static_cast
<
int32_t
>
(
quorum
))
throw
Exception
(
"Number of alive replicas ("
+
toString
(
leader_election_stat
.
numChildren
)
+
") is less than requested quorum ("
+
toString
(
quorum
)
+
")."
,
ErrorCodes
::
TOO_
LESS
_LIVE_REPLICAS
);
ErrorCodes
::
TOO_
FEW
_LIVE_REPLICAS
);
/** Is there a quorum for the last part for which a quorum is needed?
* Write of all the parts with the included quorum is linearly ordered.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录