【标题描述】:
【测试类型:SQL功能】【测试版本:5.1.0】 表中列指定了默认值,load data导入空值时报错
【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):
CentOS Linux release 7.6.1810 (Core)
Linux kwepwebenv18743 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
【测试环境】(单机/1主x备x级联备):1主2备
【被测功能】:load导入数据,不指定导入列,列含默认值
【测试类型】:功能测试
【数据库版本】(查询命令: gaussdb -V):
gaussdb (openGauss 5.1.0 build 24d9203f) compiled at 2023-09-13 09:29:49 commit 0 last mr
【预置条件】:
1.创建数据文件,写入以下内容
(11, ,'男','test')(12, , ,'test')(13, , ,'test')(14,12,'man','test')(15,12, ,'test')(16,\N,\N,'test')
2.创建兼容B库
drop database if exists db_load_data_0030;
create database db_load_data_0030 dbcompatibility = 'B';
【操作步骤】(请填写详细的操作步骤):
【预期输出】:
【实际输出】:
【原因分析】:
【日志信息】(请附上日志文件、截图、coredump信息):
【测试代码】:
Hey @ningyali, 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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Hi @ningyali,
if you want to get quick review about your issue, please contact the owner in first: @黄凯耀 ,
and then any of the maintainers: @黄凯耀 , @CodeRejector
and then any of the committers: @熊小军 , @xiuqiangwang , @zhaojun , @husan1024 , @chenxiaobin , @吴岳川 , @zhaosiqi , @jeremytim , @siven_dev , @pengjiong , @wumingyuan
if you have any question, please contact the SIG: Plugin.
ignore 功能没有生效导致。
用例也需要改下,实际是能正确导入,但有告警:
验收通过
gaussdb (openGauss 5.1.0 build 4e532edf) compiled at 2023-09-22 10:07:20 commit 0 last mr
5.0.1验收通过
登录 后才可以发表评论