Pentaho表输入中未命名的参数未被替换

时间:2017-03-29 15:51:21

标签: pentaho transformation kettle pentaho-spoon pentaho-data-integration

我在Pentaho Kettle(5.2 CE)中创建了一个转换,它从数据源中提取一些表数据并转储到目标数据源。在输入表查询中,我使用两个命名变量(para1和para2):

enter image description here enter image description here

select col1, col2,col3 from table_ds1 where col1='${para1}' and col2='${para2}';

但似乎查询中没有替换命名参数。我正在进行如下转换:

./pan.sh -file='/dir../pull_data.ktr' -param:para1=hello -param:para2=world -Level=Basic > /dir../etl.log

我的问题:是否可以在同一转换中使用命名变量?如果没有,如何从外部传递命名变量?

0 个答案:

没有答案