TurboWay opened a new issue, #13449:
URL: https://github.com/apache/dolphinscheduler/issues/13449

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   if one single sql task change database by sql ```use database;```, will 
Permanently changed the database which the data source points but not only 
session。
   All sql tasks of this data source will be affected even in different project 
or process.
   
   
   ### What you expected to happen
   
   "use database " sql should effect only session
   
   ### How to reproduce
   
   in 3.0.4/3.1.3
   use doris 
   
   1、sql task A with sql "use db2", db2 should be different from db1 which the 
data source points.
   2、execute task A
   3、sql task B with sql "insert into tb select xx", tb should be exists in db1
   4、sql task B failed with "tb does not exists"
   
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   3.1.x
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to