Skip to content

Fix split sql concatenated limit exceptions by semicolon #5245

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

huxiaojian2024
Copy link

临时查询中的提交的sql中包含非结束符号;时,直接使用;进行分割sql段时,会切分失败,导致sql不正确
sql样例:
select
id,
name,
array_join(array_intersect(map_keys(info),array['abs','oda'],';') as infos
from ods.dim_ep22 ;

错误拼接:
select
id,
name,
array_join(array_intersect(map_keys(info),array['abs','oda'],' limit 5000;

;') as infos
from ods.dim_ep22 limit 5000 ;

Copy link
Contributor

@casionone casionone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add some test cases to verify the correctness of the method.

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

Successfully merging this pull request may close these issues.

2 participants