dolphinscheduler icon indicating copy to clipboard operation
dolphinscheduler copied to clipboard

[BUG] bug with hive support

Open DingZhengCN opened this issue 7 years ago • 4 comments

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:

  1. Go to 'Process definition'
  2. Click on 'create process'
  3. Drag the 'sql' node into the panel
  4. Choose Datasource Option 'HIVE'
  5. Add Pre Statement set hivevar:name='somevalue'
  6. 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

DingZhengCN avatar Nov 13 '19 02:11 DingZhengCN

Currently sql node does not support set type, it is recommended to improve in the next version.

xingchun-chen avatar Nov 14 '19 11:11 xingchun-chen

Sql task now based on the implementation of jdbc,so support one sql in a sql task.

lgcareer avatar Dec 09 '19 09:12 lgcareer

This issue submit by 2019, very glad to know if the new version supports complex HQL.

DingZhengCN avatar Aug 20 '21 09:08 DingZhengCN

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.

zhongjiajie avatar Jan 04 '22 08:01 zhongjiajie