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] doris antlr4 g4文件语法支持不全,没跟官方文档保持一致 #35654

Open
2 of 3 tasks
zheng594 opened this issue May 30, 2024 · 0 comments
Open
2 of 3 tasks

Comments

@zheng594
Copy link

zheng594 commented May 30, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

Version

2.1 & master

What's Wrong?

doris源码中的antlr4 g4文件中的语法不全,常用的很多语法源码g4文件都不支持。
g4文件地址:/doris-master/fe/fe-core/src/main/antlr4/org/apache/doris/nereids/DorisParser.g4

不支持的示例语法:
ALTER TABLE example_db.my_table ADD COLUMN new_col INT KEY DEFAULT "0" AFTER key_1;
SHOW CREATE TABLE tab;
DESC tab;
DROP TABLE tab

What You Expected?

能像starrocks一样支持全部语法,跟官网文档保持一致

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@zheng594 zheng594 changed the title [Bug] doris g4 file not support ‘drop table' syntax [Bug] doris antlr4 g4文件语法支持不全,没跟官方文档保持一致 May 31, 2024
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