在列映射中传递管道参数 [英] passing pipeline parameter in column mapping
问题描述
i我试图将默认值配置为sourceID列。我的源是一个FILe,我的接收器是一个db表。因此,我无法在sql查询中定义sourceID。
i am trying to configure a default value as my sourceID column. my source is a FILe and my sink is a db table. hence, i cant define the sourceID in sql query.
i创建了一个参数并定义了该值。意图在列映射的动态内容字符串中传递参数。但是,我无法将参数值加载到我的表中。
i created a parameter and defined the value. intent to pass the parameter in the column mapping's dynamic content string. however, i couldnt get the parameter value loaded into my table.
如果我在动态内容定义中犯了错误或者有更好的方法来实现期望的结果。
please advice if i made mistake in the dynamic content definition or there is better way to achieve the desired outcome.
{
"type":"TabularTranslator",
"columnMappings":{
"AS_OF_DATE":"AS_OF_DATE",
"SECTOR_ID":"SECTOR_ID",
"ASSET_GROUP":"ASSET_GROUP",
"REGION":"REGION",
"COUNTRY":"COUNTRY",
"FIELD":"FIELD",
"SECTOR_FLAG":"SECTOR_FLAG",
"PRODUCT":"PRODUCT",
"PERIODICITY":"PERIODICITY",
"UNIT_CODE":"UNIT_CODE",
"OPERATORSHIP":"OPERATORSHIP",
"OPRNAME":"OPRNAME",
"ACTUAL":"ACTUAL",
"PLAN":"PLAN",
"SOURCE_ID":"@{pipeline().parameters.sourceIDmpm}"
}
}
推荐答案
您好cielle,
Hi cielle,
您可以参考
MSDN 解决类似问题的线程。
You may refer the MSDN thread which addressing similar issue.
希望这会有所帮助。
这篇关于在列映射中传递管道参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!