-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
The sql task reports an error, and the sql parsing is incorrect. #15787
Comments
Search before asking
What happenedThe SQL job uses the oracle data source type, and the task error occurs when union all is used in sql. union all What you expected to happenDisplay the merged result set normally How to reproduceExecute the following sql in the SQL task: union all Anything elseNo response Version3.2.x Are you willing to submit PR?
Code of Conduct
|
@SbloodyS please assign to me |
… druid, corresponding to issue apache#15787
Search before asking
What happened
SQL作业使用oracle数据源类型,sql中使用union all时任务出错。
执行以下sql:
select a,b,c,b-c as d
from
(select 1 as a,2 as b,3 as c from dual)
union all
select 1 as a,2 as b,3 as c,4 as d from dual
通过查询日志,可以看到以上sql被解析为:
SELECT a, b, c, b - c AS d
FROM (
SELECT 1 AS a, 2 AS b, 3 AS c
FROM dual
UNION ALL
SELECT 1 AS a, 2 AS b, 3 AS c, 4 AS d
FROM dual
)
What you expected to happen
正常显示合并结果集
How to reproduce
在SQL任务中执行以下sql:
select a,b,c,b-c as d
from
(select 1 as a,2 as b,3 as c from dual)
union all
select 1 as a,2 as b,3 as c,4 as d from dual
Anything else
No response
Version
3.2.x
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: