[BUG] bug with hive support
Describe the bug
Create a sql node, the datasource choose HIVE. it can not work right such as
set hivevar:name='myname';
select ${name};
cause the esschedule resolving the variable name before the hive sql does
To Reproduce Steps to reproduce the behavior, for example:
- Go to 'Process definition'
- Click on 'create process'
- Drag the 'sql' node into the panel
- Choose Datasource Option 'HIVE'
- Add Pre Statement
set hivevar:name='somevalue' - Typein SQL Statement
Expected behavior
Normally, select ${name} show retrieve the variable which I'v set
Which version of Easy Scheduler: -[1.1.0]
**Requirement or improvement
- Hive Version: 2.3.4
Currently sql node does not support set type, it is recommended to improve in the next version.
Sql task now based on the implementation of jdbc,so support one sql in a sql task.
This issue submit by 2019, very glad to know if the new version supports complex HQL.
Hi @DingZhengCN, sql task type could support complex sql, but it could not support set parameter for now. you could see answer
Sql task now based on the implementation of jdbc,so support one sql in a sql task.