Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
野花太放肆
oceanbase
提交
dbdba724
O
oceanbase
项目概览
野花太放肆
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oceanbase
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
dbdba724
编写于
9月 14, 2021
作者:
T
tj0
提交者:
wangzelin.wzl
9月 14, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix deadcode
上级
37b8f054
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
10 addition
and
27 deletion
+10
-27
src/sql/engine/connect_by/ob_connect_by_utility.cpp
src/sql/engine/connect_by/ob_connect_by_utility.cpp
+1
-4
src/sql/engine/connect_by/ob_connect_by_utility_bfs.cpp
src/sql/engine/connect_by/ob_connect_by_utility_bfs.cpp
+1
-4
src/sql/engine/dml/ob_table_merge.cpp
src/sql/engine/dml/ob_table_merge.cpp
+1
-4
src/sql/engine/dml/ob_table_replace.cpp
src/sql/engine/dml/ob_table_replace.cpp
+1
-4
src/sql/engine/dml/ob_table_update.cpp
src/sql/engine/dml/ob_table_update.cpp
+6
-11
未找到文件。
src/sql/engine/connect_by/ob_connect_by_utility.cpp
浏览文件 @
dbdba724
...
...
@@ -575,10 +575,7 @@ int ObConnectByPump::calc_prior_and_check_cycle(PumpNode& node, bool set_refacto
int
idx
=
0
;
DLIST_FOREACH
(
expr
,
*
connect_by_prior_exprs_
)
{
if
(
OB_ISNULL
(
expr
))
{
ret
=
OB_ERR_UNEXPECTED
;
LOG_WARN
(
"expr is NULL"
,
K
(
ret
));
}
else
if
(
OB_FAIL
(
expr
->
calc
(
*
expr_ctx_
,
*
node
.
pump_row_
,
prior_exprs_result_row_
.
cells_
[
idx
])))
{
if
(
OB_FAIL
(
expr
->
calc
(
*
expr_ctx_
,
*
node
.
pump_row_
,
prior_exprs_result_row_
.
cells_
[
idx
])))
{
LOG_WARN
(
"fail to calc prior expr"
,
KPC
(
expr
));
}
else
{
++
idx
;
...
...
src/sql/engine/connect_by/ob_connect_by_utility_bfs.cpp
浏览文件 @
dbdba724
...
...
@@ -491,10 +491,7 @@ int ObConnectByPumpBFS::calc_path_node(const ObNewRow& left_row, PumpNode& pump_
int
idx
=
0
;
DLIST_FOREACH
(
expr
,
*
connect_by_prior_exprs_
)
{
if
(
OB_ISNULL
(
expr
))
{
ret
=
OB_ERR_UNEXPECTED
;
LOG_WARN
(
"expr is NULL"
,
K
(
ret
));
}
else
if
(
OB_FAIL
(
expr
->
calc
(
*
expr_ctx_
,
left_row
,
row
.
cells_
[
idx
])))
{
if
(
OB_FAIL
(
expr
->
calc
(
*
expr_ctx_
,
left_row
,
row
.
cells_
[
idx
])))
{
LOG_WARN
(
"fail to calc prior expr"
,
KPC
(
expr
));
}
else
{
++
idx
;
...
...
src/sql/engine/dml/ob_table_merge.cpp
浏览文件 @
dbdba724
...
...
@@ -355,10 +355,7 @@ int ObTableMerge::calc_condition(ObExprCtx& expr_ctx, const ObNewRow& left_row,
}
else
{
DLIST_FOREACH
(
p
,
cond_exprs
)
{
if
(
OB_ISNULL
(
p
))
{
ret
=
OB_ERR_UNEXPECTED
;
LOG_WARN
(
"node is NULL"
,
K
(
ret
));
}
else
if
(
OB_FAIL
(
p
->
calc
(
expr_ctx
,
left_row
,
right_row
,
result
)))
{
if
(
OB_FAIL
(
p
->
calc
(
expr_ctx
,
left_row
,
right_row
,
result
)))
{
LOG_WARN
(
"failed to calc expression"
,
K
(
ret
),
K
(
*
p
),
"op_type"
,
ob_phy_operator_type_str
(
get_type
()));
}
else
if
(
OB_FAIL
(
ObObjEvaluator
::
is_true
(
result
,
is_true
)))
{
LOG_WARN
(
"failed to call is true"
,
K
(
ret
));
...
...
src/sql/engine/dml/ob_table_replace.cpp
浏览文件 @
dbdba724
...
...
@@ -612,10 +612,7 @@ int ObTableReplace::scan_row(ObExecContext& ctx, const ObPartitionKey& part_key,
DLIST_FOREACH
(
node
,
virtual_column_exprs_
)
{
const
ObColumnExpression
*
expr
=
static_cast
<
const
ObColumnExpression
*>
(
node
);
if
(
OB_ISNULL
(
expr
))
{
ret
=
OB_ERR_UNEXPECTED
;
LOG_WARN
(
"node or node expr is NULL"
,
K
(
ret
));
}
else
if
(
OB_FAIL
(
scan_param
.
virtual_column_exprs_
.
push_back
(
expr
)))
{
if
(
OB_FAIL
(
scan_param
.
virtual_column_exprs_
.
push_back
(
expr
)))
{
LOG_WARN
(
"fail to push back virtual column expr"
,
K
(
ret
));
}
}
...
...
src/sql/engine/dml/ob_table_update.cpp
浏览文件 @
dbdba724
...
...
@@ -320,17 +320,12 @@ int ObTableUpdate::get_next_row(ObExecContext& ctx, const ObNewRow*& row) const
const
ObNewRow
&
new_row
=
update_ctx
->
new_row_
;
DLIST_FOREACH
(
cur_expr
,
new_spk_exprs_
)
{
if
(
OB_ISNULL
(
cur_expr
))
{
ret
=
OB_ERR_UNEXPECTED
;
LOG_WARN
(
"current new spke expr is null"
,
K
(
new_spk_exprs_
));
}
else
{
const
ObColumnExpression
*
new_spk_expr
=
static_cast
<
const
ObColumnExpression
*>
(
cur_expr
);
int64_t
result_idx
=
new_spk_expr
->
get_result_index
();
if
(
OB_UNLIKELY
(
result_idx
<
0
)
||
OB_UNLIKELY
(
result_idx
>=
new_row
.
count_
))
{
LOG_WARN
(
"result index is invalid"
,
K
(
ret
),
K
(
result_idx
),
K
(
new_row
.
count_
));
}
else
if
(
OB_FAIL
(
new_spk_expr
->
calc
(
update_ctx
->
expr_ctx_
,
new_row
,
new_row
.
cells_
[
result_idx
])))
{
LOG_WARN
(
"calc new spk expr failed"
,
K
(
ret
),
KPC
(
new_spk_expr
),
K
(
result_idx
),
K
(
new_row
));
}
const
ObColumnExpression
*
new_spk_expr
=
static_cast
<
const
ObColumnExpression
*>
(
cur_expr
);
int64_t
result_idx
=
new_spk_expr
->
get_result_index
();
if
(
OB_UNLIKELY
(
result_idx
<
0
)
||
OB_UNLIKELY
(
result_idx
>=
new_row
.
count_
))
{
LOG_WARN
(
"result index is invalid"
,
K
(
ret
),
K
(
result_idx
),
K
(
new_row
.
count_
));
}
else
if
(
OB_FAIL
(
new_spk_expr
->
calc
(
update_ctx
->
expr_ctx_
,
new_row
,
new_row
.
cells_
[
result_idx
])))
{
LOG_WARN
(
"calc new spk expr failed"
,
K
(
ret
),
KPC
(
new_spk_expr
),
K
(
result_idx
),
K
(
new_row
));
}
}
if
(
OB_SUCC
(
ret
))
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录