Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
ef7d19e1
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,发现更多精彩内容 >>
提交
ef7d19e1
编写于
8月 05, 2019
作者:
C
chertus
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
better JOIN exception messages #5565
上级
7f28e9bc
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
7 deletion
+8
-7
dbms/src/Common/ErrorCodes.cpp
dbms/src/Common/ErrorCodes.cpp
+1
-1
dbms/src/Interpreters/Join.cpp
dbms/src/Interpreters/Join.cpp
+4
-3
dbms/src/Interpreters/SetVariants.cpp
dbms/src/Interpreters/SetVariants.cpp
+0
-1
dbms/src/Storages/StorageJoin.cpp
dbms/src/Storages/StorageJoin.cpp
+3
-2
未找到文件。
dbms/src/Common/ErrorCodes.cpp
浏览文件 @
ef7d19e1
...
@@ -127,7 +127,7 @@ namespace ErrorCodes
...
@@ -127,7 +127,7 @@ namespace ErrorCodes
extern
const
int
INCORRECT_DATA
=
117
;
extern
const
int
INCORRECT_DATA
=
117
;
extern
const
int
ENGINE_REQUIRED
=
119
;
extern
const
int
ENGINE_REQUIRED
=
119
;
extern
const
int
CANNOT_INSERT_VALUE_OF_DIFFERENT_SIZE_INTO_TUPLE
=
120
;
extern
const
int
CANNOT_INSERT_VALUE_OF_DIFFERENT_SIZE_INTO_TUPLE
=
120
;
extern
const
int
UN
KNOWN_SET_DATA_VARIANT
=
121
;
extern
const
int
UN
SUPPORTED_JOIN_KEYS
=
121
;
extern
const
int
INCOMPATIBLE_COLUMNS
=
122
;
extern
const
int
INCOMPATIBLE_COLUMNS
=
122
;
extern
const
int
UNKNOWN_TYPE_OF_AST_NODE
=
123
;
extern
const
int
UNKNOWN_TYPE_OF_AST_NODE
=
123
;
extern
const
int
INCORRECT_ELEMENT_OF_SET
=
124
;
extern
const
int
INCORRECT_ELEMENT_OF_SET
=
124
;
...
...
dbms/src/Interpreters/Join.cpp
浏览文件 @
ef7d19e1
...
@@ -26,7 +26,7 @@ namespace DB
...
@@ -26,7 +26,7 @@ namespace DB
namespace
ErrorCodes
namespace
ErrorCodes
{
{
extern
const
int
UN
KNOWN_SET_DATA_VARIANT
;
extern
const
int
UN
SUPPORTED_JOIN_KEYS
;
extern
const
int
LOGICAL_ERROR
;
extern
const
int
LOGICAL_ERROR
;
extern
const
int
SET_SIZE_LIMIT_EXCEEDED
;
extern
const
int
SET_SIZE_LIMIT_EXCEEDED
;
extern
const
int
TYPE_MISMATCH
;
extern
const
int
TYPE_MISMATCH
;
...
@@ -770,7 +770,7 @@ IColumn::Filter switchJoinRightColumns(
...
@@ -770,7 +770,7 @@ IColumn::Filter switchJoinRightColumns(
#undef M
#undef M
default:
default:
throw
Exception
(
"Un
known JOIN keys variant."
,
ErrorCodes
::
UNKNOWN_SET_DATA_VARIANT
);
throw
Exception
(
"Un
supported JOIN keys. Type: "
+
toString
(
static_cast
<
UInt32
>
(
type
)),
ErrorCodes
::
UNSUPPORTED_JOIN_KEYS
);
}
}
}
}
...
@@ -1350,7 +1350,8 @@ private:
...
@@ -1350,7 +1350,8 @@ private:
APPLY_FOR_JOIN_VARIANTS
(
M
)
APPLY_FOR_JOIN_VARIANTS
(
M
)
#undef M
#undef M
default:
default:
throw
Exception
(
"Unknown JOIN keys variant."
,
ErrorCodes
::
UNKNOWN_SET_DATA_VARIANT
);
throw
Exception
(
"Unsupported JOIN keys. Type: "
+
toString
(
static_cast
<
UInt32
>
(
parent
.
type
)),
ErrorCodes
::
UNSUPPORTED_JOIN_KEYS
);
}
}
__builtin_unreachable
();
__builtin_unreachable
();
...
...
dbms/src/Interpreters/SetVariants.cpp
浏览文件 @
ef7d19e1
...
@@ -8,7 +8,6 @@ namespace DB
...
@@ -8,7 +8,6 @@ namespace DB
namespace
ErrorCodes
namespace
ErrorCodes
{
{
extern
const
int
UNKNOWN_SET_DATA_VARIANT
;
extern
const
int
LOGICAL_ERROR
;
extern
const
int
LOGICAL_ERROR
;
}
}
...
...
dbms/src/Storages/StorageJoin.cpp
浏览文件 @
ef7d19e1
...
@@ -18,7 +18,7 @@ namespace DB
...
@@ -18,7 +18,7 @@ namespace DB
namespace
ErrorCodes
namespace
ErrorCodes
{
{
extern
const
int
UN
KNOWN_SET_DATA_VARIANT
;
extern
const
int
UN
SUPPORTED_JOIN_KEYS
;
extern
const
int
NO_SUCH_COLUMN_IN_TABLE
;
extern
const
int
NO_SUCH_COLUMN_IN_TABLE
;
extern
const
int
INCOMPATIBLE_TYPE_OF_JOIN
;
extern
const
int
INCOMPATIBLE_TYPE_OF_JOIN
;
extern
const
int
NUMBER_OF_ARGUMENTS_DOESNT_MATCH
;
extern
const
int
NUMBER_OF_ARGUMENTS_DOESNT_MATCH
;
...
@@ -285,7 +285,8 @@ private:
...
@@ -285,7 +285,8 @@ private:
#undef M
#undef M
default:
default:
throw
Exception
(
"Unknown JOIN keys variant for limited use"
,
ErrorCodes
::
UNKNOWN_SET_DATA_VARIANT
);
throw
Exception
(
"Unsupported JOIN keys in StorageJoin. Type: "
+
toString
(
static_cast
<
UInt32
>
(
parent
.
type
)),
ErrorCodes
::
UNSUPPORTED_JOIN_KEYS
);
}
}
if
(
!
rows_added
)
if
(
!
rows_added
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录