### Version v4.1 ### Which SQL? Hive ### SQL content ```sql CREATE TABLE table1 ``` ### JavaScript/TypeScript code _No response_ ### What happened? 建表语句缺少列定义的情况,在 Hive 实际语法中是非法的,但在解析树中没有报错 <img width="1303" alt="image" src="https://github.com/user-attachments/assets/24ebbfbb-08bd-4589-807f-bf74eb6c88de"> 导致 c3 收集补全时把 `statement` 开头的所有关键字都收集进来了,正常应该是 AS、Like等等 <img width="569" alt="image" src="https://github.com/user-attachments/assets/11657931-04c8-46ec-8aee-768323e08824"> ### Relevant log output _No response_
Activity
JackWang032 commentedon Mar 28, 2025
这是由于所有类型 SQL 中语句结束符分号都是可选的导致的,考虑可以通过 action 的方式往
g4
中注入运行时代码,当进行getSuggestion
时使分号必选以进行正确的 SQL 切分。