Skip to content
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

[Bug]: sql未正确输入结束但被解析为语法正确的statement #363

Open
JackWang032 opened this issue Nov 7, 2024 · 0 comments
Assignees

Comments

@JackWang032
Copy link
Collaborator

JackWang032 commented Nov 7, 2024

Version

v4.1

Which SQL?

Hive

SQL content

CREATE TABLE table1

JavaScript/TypeScript code

No response

What happened?

建表语句缺少列定义的情况,在 Hive 实际语法中是非法的,但在解析树中没有报错
image

导致 c3 收集补全时把 statement 开头的所有关键字都收集进来了,正常应该是 AS、Like等等
image

Relevant log output

No response

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

No branches or pull requests

1 participant