Skip to content

自动补全失效 #166

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
qinyouzhi opened this issue Dec 18, 2024 · 8 comments
Closed

自动补全失效 #166

qinyouzhi opened this issue Dec 18, 2024 · 8 comments
Assignees

Comments

@qinyouzhi
Copy link

如果在我当前输入的SQL上面 存在一条解析错误的sql时,当前输入的SQL无法提示关键字,库表等信息

@liuxy0551
Copy link
Collaborator

这个问题我们已经在做了,可以看下这个 PR: DTStack/dt-sql-parser#334

@qinyouzhi
Copy link
Author

nice 有预计完成日期吗

@qinyouzhi
Copy link
Author

select * from 这种语法如果不输入星号。无法提示后面的关键字及库表信息

例如:select from database.table

@liuxy0551
Copy link
Collaborator

select * from 这种语法如果不输入星号。无法提示后面的关键字及库表信息

例如:select from database.table

在解析时会尝试拆解到完整语句,目前不支持部分置空补全,因为这会显著增加匹配的选项,导致补全准确性降低。

@liuxy0551
Copy link
Collaborator

如果在我当前输入的SQL上面 存在一条解析错误的sql时,当前输入的SQL无法提示关键字,库表等信息

[email protected], [email protected] 已经部署到 https://dtstack.github.io/monaco-sql-languages/

Image

@qinyouzhi
Copy link
Author

qinyouzhi commented May 15, 2025

如果在我当前输入的SQL上面 存在一条解析错误的sql时,当前输入的SQL无法提示关键字,库表等信息

[email protected], [email protected] 已经部署到 https://dtstack.github.io/monaco-sql-languages/

Image

出现了新的问题,解析引擎为HIVE:

当如输入 select * from catalog. 进行补全的时候,syntax的wordRanges解析出来的是\n和select, 正确的解析应该是catalog和.

复现场景:当前SQL上面存在注释信息

@liuxy0551
Copy link
Collaborator

出现了新的问题,解析引擎为HIVE:

当如输入 select * from catalog. 进行补全的时候,syntax的wordRanges解析出来的是\n和select, 正确的解析应该是catalog和.

复现场景:当前SQL上面存在注释信息

感谢提醒。新出现的这个问题可以在 DTStack/dt-sql-parser#424 中跟进

@liuxy0551
Copy link
Collaborator

出现了新的问题,解析引擎为HIVE:
当如输入 select * from catalog. 进行补全的时候,syntax的wordRanges解析出来的是\n和select, 正确的解析应该是catalog和.
复现场景:当前SQL上面存在注释信息

感谢提醒。新出现的这个问题可以在 DTStack/dt-sql-parser#424 中跟进

新出现的问题已在 DTStack/dt-sql-parser#424 中提了 PR,当前 issue 关闭。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants