Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
clmforever
oceanbase
提交
0bd3fe91
O
oceanbase
项目概览
clmforever
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
1
Star
0
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,发现更多精彩内容 >>
提交
0bd3fe91
编写于
11月 14, 2022
作者:
O
obdev
提交者:
wangzelin.wzl
11月 14, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix some spm bugs
上级
b731519b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
6 deletion
+13
-6
src/sql/engine/expr/ob_expr_to_outfile_row.cpp
src/sql/engine/expr/ob_expr_to_outfile_row.cpp
+3
-3
src/sql/engine/prepare/ob_prepare_executor.cpp
src/sql/engine/prepare/ob_prepare_executor.cpp
+1
-1
src/sql/spm/ob_spm_define.h
src/sql/spm/ob_spm_define.h
+9
-2
未找到文件。
src/sql/engine/expr/ob_expr_to_outfile_row.cpp
浏览文件 @
0bd3fe91
...
...
@@ -220,9 +220,9 @@ int ObExprToOutfileRow::extract_fisrt_wchar_from_varhcar(const ObObj &obj, int32
// If the FIELDS ESCAPED BY character is not empty, it is used to prefix the following
// characters on output:
// 1. The FIELDS ESCAPED BY character.
// 2. The FIELDS [OPTIONALLY] ENCLOSED BY character.
// 3. The first character of the FIELDS TERMINATED BY and LINES TERMINATED BY values,
// if the ENCLOSED BY character is empty or unspecified.
// 2. The FIELDS [OPTIONALLY] ENCLOSED BY character.
// 3. The first character of the FIELDS TERMINATED BY and LINES TERMINATED BY values,
// if the ENCLOSED BY character is empty or unspecified.
// 4. ASCII 0 (what is actually written following the escape character is ASCII 0, not a
// zero-valued byte).
// 5. If the FIELDS ESCAPED BY character is empty, no characters are escaped and NULL is output
...
...
src/sql/engine/prepare/ob_prepare_executor.cpp
浏览文件 @
0bd3fe91
...
...
@@ -55,7 +55,7 @@ int ObPrepareExecutor::execute(ObExecContext &ctx, ObPrepareStmt &stmt)
if
(
OB_FAIL
(
ObSQLUtils
::
calc_const_expr
(
ctx
,
stmt
.
get_prepare_sql
(),
result
,
ctx
.
get_allocator
(),
params_array
)))
{
LOG_WARN
(
"failed to calc const expr"
,
K
(
stmt
.
get_prepare_sql
()),
K
(
ret
));
}
else
if
(
!
result
.
is_string_type
())
{
ret
=
OB_ERR_
UNEXPECTED
;
ret
=
OB_ERR_
PARSER_SYNTAX
;
LOG_WARN
(
"prepare sql is not a string"
,
K
(
result
),
K
(
ret
));
}
else
{
ObString
stmt_name
;
...
...
src/sql/spm/ob_spm_define.h
浏览文件 @
0bd3fe91
...
...
@@ -258,7 +258,7 @@ struct ObSpmCacheCtx : public ObILibCacheCtx
spm_force_disable_
(
false
),
has_fixed_plan_to_check_
(
false
),
evolution_plan_type_
(
OB_PHY_PLAN_UNINITIALIZED
),
last_evolution_count_
(
0
)
select_plan_type_
(
INVALID_TYPE
)
{}
enum
SpmMode
{
MODE_INVALID
,
...
...
@@ -281,6 +281,13 @@ struct ObSpmCacheCtx : public ObILibCacheCtx
STAT_ACCEPT_BASELINE_PLAN
,
// move baeline plan from evolution layer to plan layer
STAT_MAX
};
enum
SpmSelectPlanType
{
INVALID_TYPE
,
EVO_PLAN
,
BASELINE_PLAN
,
MAX_TYPE
};
void
set_get_normal_mode
(
uint64_t
v
)
{
plan_hash_value_
=
v
;
handle_cache_mode_
=
MODE_GET_NORMAL
;
}
void
set_get_offset_mode
()
{
handle_cache_mode_
=
MODE_GET_OFFSET
;
}
void
set_get_for_update_mode
(
uint64_t
v
)
{
plan_hash_value_
=
v
;
handle_cache_mode_
=
MODE_GET_FOR_UPDATE
;
}
...
...
@@ -308,7 +315,7 @@ struct ObSpmCacheCtx : public ObILibCacheCtx
bool
spm_force_disable_
;
bool
has_fixed_plan_to_check_
;
ObPhyPlanType
evolution_plan_type_
;
int64_t
last_evolution_count
_
;
// for retry
SpmSelectPlanType
select_plan_type
_
;
// for retry
};
struct
EvolutionTaskResult
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录