【使用jsonb的-->>操作符操作标量类型报错失败】:
【测试类型:SQL功能】【测试版本:v2.1.0】 问题描述
【操作系统和硬件信息】(查询命令: cat /etc/system-release, uname -a):
【测试类型】:
【数据库版本】(查询命令: gaussdb –V):
【预置条件】:
无
【操作步骤】(请填写详细的操作步骤):
【预期输出】:
【实际输出】:
【原因分析】:
这个问题的根因
问题推断过程
还有哪些原因可能造成类似现象
该问题是否有临时规避措施
问题解决方案
预计修复问题时间
【日志信息】(请附上日志文件、截图、coredump信息):
【测试代码】:
无
Hey @chuanglichuangwai, 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 https://gitee.com/opengauss/community/blob/master/contributors/command.en.md to find the details.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
/assign
this issue is assigned to: @siven_dev.
当前openGauss之中,与pg不完全相同,这是当前预期结果
可以用以下语法查出,故关闭此问题单
openGauss=# select * from t_jsonb where jsonb_typeof(info)='object' and info->>'num'='1';
-[ RECORD 1 ]-------------------------------------
id | 1
info | {"num": "1", "name": "张三", "score": "90"}
登录 后才可以发表评论