Dolphinscheduler: [Question] support multi-queries in single sql transformation task

Created on 10 Sep 2020  ·  13Comments  ·  Source: apache/dolphinscheduler

*For better global communication, please give priority to using English description, thx! *

Please review https://dolphinscheduler.apache.org/en-us/docs/development/issue.html when describe an issue.

Describe the question
I think in sql transformation task, multi-queries separated by ; need supported in single sql transformation task, regardless of any driver or any connection.
the SQLs parsed in the sql task can be executed in order, and when one SQL in the task failed, this task need fails too.

question

All 13 comments

It feels that the function you mentioned is very similar to the implementation of presto. Presto can implement mixed query of multiple data sources. DS has integrated Presto, you can try this.


感觉你说的功能,跟presto实现很像,presto可以实现多数据源混合查询,DS已经集成Presto,可以试试这个。

@zhuangchong it’s not that meaning. I said one sql task can contain several independent sql segments separated by semicolon, which can be executed in order. It’s not the presto scenario to solve inter-instance query.

这个问题困扰了很久,不然一段sql要分成几段去执行,不是很方便

@zhuangchong it’s not that meaning. I said one sql task can contain several independent sql segments separated by semicolon, which can be executed in order. It’s not the presto scenario to solve inter-instance query.

Then I got it wrong, what you said will be prepared in the next version, currently you can use shell/python to call sql files


那我理解错了,你说的这个在下个版本准备做了,目前可以使用shell/python 调用sql 文件的方式

使用shell/python调用sql,如果中间执行出错不能更新到任务实例状态

This feature or enhancement can be promoted the priority.

BTW, who are developing this issue(case) now? @zhuangchong

BTW, who are developing this issue(case) now? @zhuangchong

https://github.com/apache/incubator-dolphinscheduler/issues/3641

@zhuangchong I also need this feature I have modified this feature locally, but I'm not sure if my change is reasonable. How can I discuss my ideas or give some reasonable suggestions。

@zhuangchong I also need this feature I have modified this feature locally, but I'm not sure if my change is reasonable. How can I discuss my ideas or give some reasonable suggestions。

you can send mail to [email protected] to disscuss this topic

https://dolphinscheduler.apache.org/zh-cn/docs/development/subscribe.html

@zhuangchong I sent an email but there seems to be no feedback =。=

support multi-queries like redash#5100

it is the same as #3799

Was this page helpful?
0 / 5 - 0 ratings