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

Add parameter to set whether trino dialect is downgraded #52702

Open
renzhimin7 opened this issue Nov 7, 2024 · 0 comments · May be fixed by #52660
Open

Add parameter to set whether trino dialect is downgraded #52702

renzhimin7 opened this issue Nov 7, 2024 · 0 comments · May be fixed by #52660

Comments

@renzhimin7
Copy link
Contributor

Feature request

Is your feature request related to a problem? Please describe.

set sql_dialect = 'trino';
select json_extract(json, '$.store.book') --正常
select date_sub(current_date, interval 14 day) --正常
但是
select json_extract(json, '$.store.book') , date_sub(current_date, interval 14 day) -- 不正常
原因是 json_extract符合trino语法,date_sub(current_date, interval 14 day) 符合SR语法,所以两个单独查询没问题,但是联合查时会有异常,会带来困惑

Describe the solution you'd like

新增参数,支持配置是否允许从Trino降级到StarRocks方言
Describe alternatives you've considered

Additional context

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

Successfully merging a pull request may close this issue.

1 participant