cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results for 
Search instead for 
Did you mean: 

Usage of if else condition for data check

Azsdc
New Contributor

Hi,

In a particular Workflows Job, I am trying to add some data checks in between each task by using If else statement. 

I used following statement in a notebook to call parameter in if else condition to check logic.

{
"job_id": XXXXX,
"notebook_params": {
"minMPID": "200912",
"maxMPID": "202312",
"Flag":1
}
}

After that, I am adding a if/else condition task in between 2 tasks to check data and calling maxMPID to check whether maxMPID == 202312. However, it gets failure.

How to define a parameter to use in if else condition Job? Or do you have any suggestion to add sanity checks for data (whether any duplication, or table filled) in between each task?

0 REPLIES 0

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now