400 Star 1.3K Fork 1.5K

GVPopenGauss / openGauss-server

 / 详情

【测试类型:SQL功能】【测试版本:5.1.1】【资源池化】开启spq多机执行,表字段使用自定义类型时,查询表数据报错

已验收
缺陷
创建于  
2023-10-30 17:47

【标题描述】:开启spq多机执行,表字段使用自定义类型时,查询表数据报错
【测试类型:SQL功能】【测试版本:5.1.1】【资源池化】开启spq多机执行,表字段使用自定义类型时,查询表数据报错
【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):
openEuler release 20.03 (LTS-SP3)
Linux openGauss117 4.19.90-2303.4.0.0193.oe1.aarch64 #1 SMP Wed Mar 22 03:04:16 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
【测试环境】(单机/1主x备x级联备):
一主两备
【被测功能】:spq多机并行
【测试类型】:功能参数
【数据库版本】(查询命令: gaussdb -V):
gaussdb (openGauss 5.1.1 build 96aca89e) compiled at 2023-10-25 09:59:52 commit 0 last mr
【预置条件】:
gs_guc set -N all -I all -c"shared_preload_libraries='security_plugin,spqplugin'"
spqplugin.enable_spq = on
spqplugin.cluster_map = 'xxx|xxx|xxx|xxx|xxx|xxx,...'
【操作步骤】(请填写详细的操作步骤):

--1.自定义数据类型,建表预置数据
create type zdytype as(a int, b text);
create table t1(c1 int primary key, c2 zdytype);
insert into t1 values(1, (1,'test'));
--2.查询表,执行计划
select * from t1;
explain select * from t1;
--3.关闭spq,查询
set spqplugin.enable_spq to off;
select * from t1;
explain select * from t1;

【预期输出】:步骤2查询表数据成功, 1 | (1,test)
【实际输出】:查询报错 ERROR: invalid syntax for type: ""
输入图片说明
【原因分析】:

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

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

【测试代码】:无

评论 (3)

songjing 创建了缺陷

Hi @songjing, please use the command /sig xxx to add a SIG label to this issue.
For example: /sig sqlengine or /sig storageengine or /sig om or /sig ai and so on.
You can find more SIG labels from Here.
If you have no idea about that, please contact with @xiangxinyong , @zhangxubo .

Hey @songjing, 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.

songjing 负责人设置为阙鸣健
songjing 添加协作者陈栋
songjing 关联项目设置为openGauss 5.1.1 community
songjing 优先级设置为主要
songjing 关联分支设置为master
阙鸣健 任务状态待办的 修改为已确认
阙鸣健 任务状态已确认 修改为修复中
阙鸣健 任务状态修复中 修改为已完成
阙鸣健 任务状态已完成 修改为待回归
jiexiao1413 任务状态待回归 修改为测试中

回归结论:通过
回归版本:gaussdb (openGauss 5.1.1 build 5099d94c) compiled at 2023-11-08 14:52:29 commit 0 last mr
回归日期:2023.11.11
回归步骤:
输入图片说明

songjing 任务状态测试中 修改为已验收

登录 后才可以发表评论

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

搜索帮助