简体   繁体   中英

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

. 在此处输入图像描述

I am exec adb notebook in if/else condition from adf

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'. 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.

Issue After lookup pipline is not going inside if part? 在此处输入图像描述 在此处输入图像描述 在此处输入图像描述

Thank you @anuj for your solution. 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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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