简体   繁体   English

Azure databricks 笔记本从 azure 数据工厂调用基于 if/else 标志

[英]Azure databricks notebook call from azure data factory based on if/else flag

. . 在此处输入图像描述

I am exec adb notebook in if/else condition from adf我在 adf 的 if/else 条件下执行 adb notebook

I have a lookup which will check flag condition in delta lake table SELECT COUNT(*) AS cnt FROM db.check where job_status = 2 and site ='xxx-xxx-xxx'.我有一个查找将检查 delta lake 表中的标志条件 SELECT COUNT(*) AS cnt FROM db.check where job_status = 2 and site ='xxx-xxx-xxx'。 This will give me a count 2 and I used it in the if part condition @equals(activity('select job status').output.value[0],2) it should call adb notebook else logic app.这将给我一个计数 2,我在 if 部分条件中使用它 @equals(activity('select job status').output.value[0],2) 它应该调用 adb notebook else 逻辑应用程序。

Issue After lookup pipline is not going inside if part?问题查找后管道是否不进入内部? 在此处输入图像描述 在此处输入图像描述 在此处输入图像描述

Thank you @anuj for your solution.谢谢@anuj 的解决方案。 Posting it as an answer to help other community members.将其发布为帮助其他社区成员的答案。

To refer to lookup activity value of a column in later activities, include the column name in the expression as below.要在以后的活动中引用列的lookup活动值,请在表达式中包含列名称,如下所示。

@equals(activity('select job status').output.value[0].cnt,2)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM