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

DDL中表名带有特定关键字时会出现错误 #39

Closed
YouboFAN opened this issue Jun 10, 2022 · 1 comment
Closed

DDL中表名带有特定关键字时会出现错误 #39

YouboFAN opened this issue Jun 10, 2022 · 1 comment

Comments

@YouboFAN
Copy link

YouboFAN commented Jun 10, 2022

DDL建表语句 表名带有特定关键字时会出现格式化错误
原DDL

CREATE TABLE a.tmp_interact (
    `uid` bigint COMMENT "uid",
    `label` bigint COMMENT "标签"
) COMMENT "sample table" partitioned by (`pt` STRING);

格式化后出现问题

 CREATE  TABLE  COMMENT undefined
,`uid`   bigint COMMENT  "uid"
,`label` bigint COMMENT  "标签"

) COMMENT "sample table" PARTITIONED by (pt STRING);
将表名中的int替换成其他比如it,再格式化后正常

CREATE TABLE a.tmp_iteract (
     `uid`   bigint COMMENT  "uid"
    ,`label` bigint COMMENT  "标签"
) COMMENT "sample table" PARTITIONED by (`pt` STRING);

目前尝试了一下int、float都会引发此错误

@clarkyu2016
Copy link
Owner

新版本0.3.13已经修复,感谢您的反馈!

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

2 participants