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


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 .



已修复,多行输入后按Tab键可进行补全
-- 清理旧对象
DROP TABLE IF EXISTS test1 CASCADE;
DROP TABLE IF EXISTS test2 CASCADE;
-- 创建主测表 test1
CREATE TABLE test1 (
id INT PRIMARY KEY,
name VARCHAR(50)
);
-- 创建辅助表 test2(用于验证 FROM 后表名候选是否完整)
CREATE TABLE test2 (
id INT PRIMARY KEY,
value VARCHAR(50)
);
-- 插入数据(可选)
INSERT INTO test1 VALUES (1, 'Alice');
INSERT INTO test1 VALUES (2, 'Bob');
INSERT INTO test2 VALUES (1, 'X');
COMMIT;
SQL> select
2 *
3 from
4 <这里按一次 Tab>

SQL> select
*
from
test1
where
2 na<按Tab>
3 is null;

对于截断问题在文档中进行了介绍



回归版本: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 执行
结论:通过(多行 continuation 下 FROM/WHERE 补全上下文未丢失)
回归步骤(ogsql / as sysdba,Linux TTY)
SQL> select
2 *
3 from
4 te<Tab> -- 补为 test1
SQL> select
2 *
3 from test1
4 where na<Tab> -- 补为 name
实际输出
te → test1;where na → where name。
说明:FROM 后空前缀 Tab 仍会列出系统视图(32 条截断),带前缀即可命中业务表,原「continuation 丢语境」已修复。


测试类型
工具功能
测试版本
7.0.0-RC3
操作系统和硬件信息
openEuler 20.03 aarch64
测试环境
资源池化
被测功能
ogsql Tab — 多行 continuation 提示符下补全上下文丢失
预置条件
oGRAC ONLINE;
ogsql / as sysdbaTTY;已建 test1(id, name)。需求文档:多行 g_sql_text 聚合后应按完整语句解析 FROM/WHERE 语境。操作步骤
预期输出
实际输出
日志信息
用户手工 #9/#10。需求见 ogsql_readline需求文档 g_sql_text、多行状态机。
提单组织
测试团队