【发布时间】:2020-10-31 06:30:03
【问题描述】:
我目前正在尝试将翻转窗口触发器的 windowStartTime 和 windowEndTime 传递到数据流管道的参数中。根据 [this forum][1] 我无法将触发器参数直接传递到管道中,因此使用 [this guide][2] 我需要将以下参数代码块添加到触发器中在 ADF>Manage>Triggers>Trigger code 中将这两个变量传递给参数 myWindowStart 和 myWindowEnd:
{
"name": "trigger5",
"properties": {
"annotations": [],
"runtimeState": "Stopped",
"pipeline": {
"pipelineReference": {
"referenceName": "pipeline1",
"type": "PipelineReference"
},
"parameters": {
"MyWindowStart": {
"type": "Expression",
"value": "@{concat('output',formatDateTime(trigger().outputs.windowStartTime,'-dd-MM-yyyy-HH-mm-ss-ffff'))}"
},
"MyWindowEnd": {
"type": "Expression",
"value": "@{concat('output',formatDateTime(trigger().outputs.windowEndTime,'-dd-MM-yyyy-HH-mm-ss-ffff'))}"
}
}
},
//redacted
}
但是,当按下“确定”时,代码编辑不保存。当我重新打开代码时,我所做的任何编辑都不显示。
有什么想法吗?
完整上下文:我正在尝试将翻转窗口值传递到查询中,以便根据该行上次修改的时间从数据库中提取行,并将这些行插入到另一个数据库中。
【问题讨论】:
标签: azure azure-data-factory-2