Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
野花太放肆
oceanbase
提交
a118af24
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,发现更多精彩内容 >>
提交
a118af24
编写于
3月 23, 2023
作者:
Y
yongshige
提交者:
ob-robot
3月 23, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix identity bug
上级
ea0ab348
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
4 addition
and
5 deletion
+4
-5
src/observer/table_load/ob_table_load_obj_cast.cpp
src/observer/table_load/ob_table_load_obj_cast.cpp
+1
-1
src/observer/table_load/ob_table_load_partition_calc.cpp
src/observer/table_load/ob_table_load_partition_calc.cpp
+1
-1
src/observer/table_load/ob_table_load_trans_bucket_writer.cpp
...observer/table_load/ob_table_load_trans_bucket_writer.cpp
+1
-1
src/observer/table_load/ob_table_load_trans_store.cpp
src/observer/table_load/ob_table_load_trans_store.cpp
+1
-2
未找到文件。
src/observer/table_load/ob_table_load_obj_cast.cpp
浏览文件 @
a118af24
...
...
@@ -361,7 +361,7 @@ int ObTableLoadObjCaster::cast_obj_check(ObTableLoadCastObjCtx &cast_obj_ctx,
bool
is_fast_number
=
cast_obj_ctx
.
number_fast_ctx_
.
is_fast_number_
;
bool
not_null_validate
=
(
!
column_schema
->
is_nullable
()
&&
lib
::
is_mysql_mode
())
||
(
column_schema
->
is_not_null_enable_column
()
&&
lib
::
is_oracle_mode
());
if
(
obj
.
is_null
()
&&
not_null_validate
)
{
if
(
obj
.
is_null
()
&&
not_null_validate
&&
!
column_schema
->
is_identity_column
()
)
{
const
ObString
&
column_name
=
column_schema
->
get_column_name
();
ret
=
OB_BAD_NULL_ERROR
;
LOG_USER_ERROR
(
OB_BAD_NULL_ERROR
,
column_name
.
length
(),
column_name
.
ptr
());
...
...
src/observer/table_load/ob_table_load_partition_calc.cpp
浏览文件 @
a118af24
...
...
@@ -226,7 +226,7 @@ int ObTableLoadPartitionCalc::get_row(ObTableLoadPartitionCalcContext &ctx, cons
ObObj
*
rowkey_objs
=
static_cast
<
ObObj
*>
(
allocator
.
alloc
(
sizeof
(
ObObj
)
*
rowkey_obj_count
));
ObDataTypeCastParams
cast_params
(
&
tz_info_
);
ObCastCtx
cast_ctx
(
&
allocator
,
&
cast_params
,
CM_NONE
,
ObCharset
::
get_system_collation
());
ObTableLoadCastObjCtx
cast_obj_ctx
(
ctx
.
param_
,
&
time_cvrt_
,
&
cast_ctx
,
fals
e
);
ObTableLoadCastObjCtx
cast_obj_ctx
(
ctx
.
param_
,
&
time_cvrt_
,
&
cast_ctx
,
tru
e
);
if
(
OB_ISNULL
(
rowkey_objs
))
{
ret
=
OB_ALLOCATE_MEMORY_FAILED
;
LOG_WARN
(
"fail to alloc memory"
,
KR
(
ret
));
...
...
src/observer/table_load/ob_table_load_trans_bucket_writer.cpp
浏览文件 @
a118af24
...
...
@@ -208,7 +208,7 @@ int ObTableLoadTransBucketWriter::handle_partition_with_autoinc_identity(
ObCastCtx
cast_ctx
(
&
autoinc_allocator
,
&
cast_params
,
CM_NONE
,
ObCharset
::
get_system_collation
());
ObTableLoadCastObjCtx
cast_obj_ctx
(
param_
,
&
(
coordinator_ctx_
->
partition_calc_
.
time_cvrt_
),
&
cast_ctx
,
fals
e
);
tru
e
);
ObObj
out_obj
;
for
(
int64_t
j
=
0
;
OB_SUCC
(
ret
)
&&
j
<
row_count
;
++
j
)
{
ObStorageDatum
storage_datum
;
...
...
src/observer/table_load/ob_table_load_trans_store.cpp
浏览文件 @
a118af24
...
...
@@ -365,8 +365,7 @@ int ObTableLoadTransStoreWriter::cast_row(ObArenaAllocator &cast_allocator,
const
ObColumnSchemaV2
*
column_schema
=
column_schemas_
.
at
(
i
);
ObCastCtx
cast_ctx
(
&
cast_allocator
,
&
cast_params
,
CM_NONE
,
column_schema
->
get_collation_type
());
ObTableLoadCastObjCtx
cast_obj_ctx
(
param_
,
&
time_cvrt_
,
&
cast_ctx
,
true
);
if
((
!
row
.
cells_
[
i
].
is_null
()
||
(
!
column_schema
->
is_autoincrement
()
&&
!
column_schema
->
is_identity_column
()))
&&
if
((
!
row
.
cells_
[
i
].
is_null
())
&&
OB_FAIL
(
ObTableLoadObjCaster
::
cast_obj
(
cast_obj_ctx
,
column_schema
,
row
.
cells_
[
i
],
out_obj
)))
{
LOG_WARN
(
"fail to cast obj and check"
,
KR
(
ret
),
K
(
i
),
K
(
row
.
cells_
[
i
]));
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录