400 Star 1.3K Fork 1.5K

GVPopenGauss / openGauss-server

 / 详情

【测试类型:SQL功能】【测试版本:master】 使用ignore向间隔分区表中插入null报错

已验收
缺陷
创建于  
2022-06-29 19:53

【标题描述】:使用ignore向间隔分区表中插入null报错
【测试类型:SQL功能】【测试版本:master】 使用ignore向间隔分区表中插入null报错

【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):
CentOS Linux release 7.6.1908 (Core)
Linux kwemhisprc01300 3.10.0-1062.el7.x86_64 #1 SMP Wed Aug 7 18:08:02 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
【测试环境】(单机/1主x备x级联备):
单机
【被测功能】:
ignore
【测试类型】:
功能
【数据库版本】(查询命令: gaussdb –V):
gaussdb (openGauss 3.0.0 build ) compiled at 2022-06-27 17:35:01 commit 0 last mr
【预置条件】:
已安装opengauss数据库,已有dolphin插件
【操作步骤】(请填写详细的操作步骤):
1.默认库/兼容B库,建表drop table if exists t_ignore_0007 cascade;
create table t_ignore_0007
(
id1 integer primary key,
id3 integer,
c_3 date
)
PARTITION BY RANGE (c_3) INTERVAL('1 year')
(
PARTITION P1 values less than ('2018-03-16 16:27:04'),
PARTITION P2 values less than ('2020-03-16 16:27:04'),
PARTITION P4 values less than ('2022-03-16 16:27:04')
) ENABLE ROW MOVEMENT;
2.插入null
默认B库:insert /*+ ignore_error */ into t_ignore_0007 values(2,2,null);
兼容B库:insert ignore into t_ignore_0007 values(2,2,null);
【预期输出】:
忽略插入,不报error,出现warning提示
【实际输出】:
输入图片说明
输入图片说明
【原因分析】:

  1. 这个问题的根因
  2. 问题推断过程
  3. 还有哪些原因可能造成类似现象
  4. 该问题是否有临时规避措施
  5. 问题解决方案
  6. 预计修复问题时间

【日志信息】(请附上日志文件、截图、coredump信息):

【测试代码】:

评论 (3)

lixin 创建了缺陷

Hey @lixin, Welcome to openGauss Community.
All of the projects in openGauss Community are maintained by @opengauss-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at Here to find the details.

lixin 负责人设置为zhangzhixian
lixin 关联项目设置为openGauss 3.1.0 community
lixin 优先级设置为次要
lixin 关联分支设置为master
zhangzhixian 任务状态待办的 修改为已确认
zhangzhixian 任务状态已确认 修改为修复中
zhangzhixian 任务状态修复中 修改为已完成

输入图片说明
输入图片说明
gaussdb (openGauss 3.0.0 build ) compiled at 2022-07-25 10:27:47 commit 0 last mr
兼容B库,无dolphin插件场景,已验证修复

输入图片说明
输入图片说明
gaussdb (openGauss 3.0.0 build ) compiled at 2022-07-25 10:27:47 commit 0 last mr
已编译安装插件dolphin,兼容B库场景已验证修复

lixin 任务状态已完成 修改为测试中
lixin 任务状态测试中 修改为已验收

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5622128 opengauss bot 1581905080
C++
1
https://gitee.com/opengauss/openGauss-server.git
git@gitee.com:opengauss/openGauss-server.git
opengauss
openGauss-server
openGauss-server

搜索帮助