已关闭
[Bug]: ogsql select dis 无法补全 DISTINCT 关键字 #296
wuchenlong创建于  7月27日关闭于  19 天前
wuchenlong
wuchenlong成员
7月27日 创建

测试类型

工具功能

测试版本

7.0.0-LTS

操作系统和硬件信息

openEuler 20.03 aarch64

测试环境

oGRAC双节点

被测功能

ogsql Tab — SELECT DISTINCT 关键字补全

预置条件

开发 补全列表-手动添加.txtdistinct;内核为 RESERVED_KEYWORD。表 test1 已存在。

操作步骤

SQL> select dis<Tab><Tab>
SQL> select distinct na<Tab>   -- 第二处验证

预期输出

候选应含 SQL 关键字 DISTINCT(或唯一时直接补全为 distinct),
不应被系统列 DIST_* / DISTINCT_KEYS 等淹没。

实际输出

select dis + Tab×2:
  行未变为 select distinct
  屏幕出现 DIST_DATA / DIST_NUM / DISTKEY / DIST_TEXT 等系统列名,
  未见关键字 DISTINCT。

用户场景:select distinct name from test1; 中 distinct 无法通过 Tab 补全。

日志信息

用户手工 #8。与 #288 列候选过宽同源,但本单聚焦 手动词表已列 distinct 仍无法补关键字。PTY 2026-07-27 复核:屏幕含 DIST_* 无 distinct 关键字。

提单组织

测试团队

likedislike
wuchenlongwuchenlong成员
7月27日 添加了label:bug
opengauss_bot
opengauss_bot成员
7月27日 评论:

This issue requires an assignee. Since you haven't specified one, we've assigned TestManager as the default assignee for this issue.

likedislike
opengauss_botopengauss_bot成员
7月27日 将 TestManager 设为负责人
opengauss_botopengauss_bot成员
7月27日 添加了label:sig/StorageEngine
opengauss_bot
opengauss_bot成员
7月27日 评论:

Welcome To openGauss Community

Hey @wuchenlong , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: StorageEngine ,
and any of the maintainers: @CarrotGo, @chendong76, @chenxiaobin19, @congzhou2603, @dodders, @hwworkholic, @jemappellehc, @muyulinzhong, @quemingjian, @shenzheng4, @shirley_zhengx, @superlchf, @totaj, @wlff234, @wofanzheng, @ywzq1161327784 ,
and any of the committers: @CityYard, @libiao2024, @lijieac, @theothersideofsea, @wang_bowen, @weithu, @xiong_xjun, @yuanyazhi, @zhangzq131 .

likedislike
wuchenlongwuchenlong成员
7月27日 关联了看板:临时看板
wuchenlongwuchenlong成员
7月27日 修改了issue 的描述
chendong76chendong76成员
8月3日 关联了看板:openGauss 7.0.0-LTS
chendong76chendong76成员
8月3日 移除了看板:临时看板
wuchenlongwuchenlong成员
8月3日 issue优先级由 无优先级 改变为 次要
muyulinzhongmuyulinzhong成员
8月4日 将 leweiyang 设为负责人
muyulinzhongmuyulinzhong成员
8月4日 移除了负责人 TestManager
leweiyang
leweiyang成员
25 天前 评论:

image.png

SQL> select dis
现直接补全

image.png

likedislike
leweiyangleweiyang成员
25 天前 关联了pull request:优化补全时的候选顺序(#288、#291、#292、#296、#298)
leweiyangleweiyang成员
20 天前 issue状态由 待办的 改变为 待回归
wuchenlong
wuchenlong成员
19 天前 评论:

回归版本:oGRAC Release 7.0.0-RC3 18ce0a2 build 2026-08-26 09:48:01
回归环境:oGRAC 双节点(20.20.20.104 / 20.20.20.106),db=ONLINE,节点 20.20.20.104 执行
结论:通过select dis + Tab 能补关键字 distinct

回归步骤ogsql / as sysdba,Linux TTY)

SQL> select dis<Tab><Tab>

实际输出
屏幕含关键字 distinct。pty 自动化断言通过。

likedislike
wuchenlongwuchenlong成员
19 天前 issue状态由 待回归 改变为 已验收
wuchenlongwuchenlong成员
19 天前 关闭了 issue