【标题描述】:使用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提示
【实际输出】:
【原因分析】:
【日志信息】(请附上日志文件、截图、coredump信息):
【测试代码】:
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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
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库场景已验证修复
登录 后才可以发表评论