apache / linkis

Apache Linkis builds a computation middleware layer to facilitate connection, governance and orchestration between the upper applications and the underlying data engines.
https://linkis.apache.org/
Apache License 2.0
3.27k stars 1.15k forks source link

[Bug] [entrance]Unable to parse field comment semicolons #4966

Closed sjgllgh closed 6 months ago

sjgllgh commented 8 months ago

Search before asking

Linkis Component

linkis-computation-governance

Steps to reproduce

1.spark engine run sql,eg: drop table if exists default.test; create table default.test( id varchar(11) comment '这是注释测试分号;这是注释测试分号;', id1 string comment '测试', id2 string COMMENT '码值说明:2-高;3-中;4-低;' );

2.The entrance service is divided into sections according to semicolons,eg: drop table if exists default.test; create table default.test( id varchar(11) comment '这是注释测试分号; 这是注释测试分号; ', id1 string comment '测试', id2 string COMMENT '码值说明:2-高; 3-中; 4-低; ' )

3.hive beeline automatically escapes semicolons in comments, so there is no problem

Expected behavior

When my sql passes through the entrance, the conversion format is as follows: drop table if exists default.test; create table default.test( id varchar(11) comment '这是注释测试分号\;这是注释测试分号\;', id1 string comment '测试', id2 string COMMENT '码值说明:2-高\;3-中\;4-低\;' );

Your environment

Anything else

No response

Are you willing to submit a PR?

github-actions[bot] commented 8 months ago

:blush: Welcome to the Apache Linkis community!!

We are glad that you are contributing by opening this issue.

Please make sure to include all the relevant context. We will be here shortly.

If you are interested in contributing to our website project, please let us know! You can check out our contributing guide on :point_right: How to Participate in Project Contribution.

Community

WeChat Assistant WeChat Public Account

Mailing Lists

Name Description Subscribe Unsubscribe Archive
dev@linkis.apache.org community activity information subscribe unsubscribe archive