You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2020/06/12 08:24:56 UTC

[GitHub] [incubator-dolphinscheduler] gabrywu commented on issue #2953: [QUESTION] Whether hive can execute multiple SQL statements

gabrywu commented on issue #2953:
URL: https://github.com/apache/incubator-dolphinscheduler/issues/2953#issuecomment-643143903


   > Whether hive can execute multiple SQL statements
   > version: 1.3.0
   
   Currently ,we can't execute multiple SQL statements. Because the SQL is executed by jdbc Statement object, and each Statement can only run one SQL.
   If you want to execute multiple SQL, you'd better merge them into one, which looks like 
   `insert into emp(id,name,age) 
   select '1','name-1',22 union all 
   select '2','name-2',12 union all 
   select '3','name-3',18
   `


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org