<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Usage of if else condition for data check in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/usage-of-if-else-condition-for-data-check/m-p/65756#M6998</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In a particular Workflows Job, I am trying to add some data checks in between each task by using If else statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used following statement in a notebook to call parameter in if else condition to check logic.&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"job_id": XXXXX,&lt;BR /&gt;"notebook_params": {&lt;BR /&gt;"minMPID": "200912",&lt;BR /&gt;"maxMPID": "202312",&lt;BR /&gt;"Flag":1&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;After that, I am adding a if/else condition task in between 2 tasks to check data and calling maxMPID to check whether&amp;nbsp;maxMPID == 202312. However, it gets failure.&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2024 07:06:16 GMT</pubDate>
    <dc:creator>Azsdc</dc:creator>
    <dc:date>2024-04-08T07:06:16Z</dc:date>
    <item>
      <title>Usage of if else condition for data check</title>
      <link>https://community.databricks.com/t5/get-started-discussions/usage-of-if-else-condition-for-data-check/m-p/65756#M6998</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In a particular Workflows Job, I am trying to add some data checks in between each task by using If else statement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used following statement in a notebook to call parameter in if else condition to check logic.&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"job_id": XXXXX,&lt;BR /&gt;"notebook_params": {&lt;BR /&gt;"minMPID": "200912",&lt;BR /&gt;"maxMPID": "202312",&lt;BR /&gt;"Flag":1&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;After that, I am adding a if/else condition task in between 2 tasks to check data and calling maxMPID to check whether&amp;nbsp;maxMPID == 202312. However, it gets failure.&lt;/P&gt;&lt;P&gt;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?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 07:06:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/usage-of-if-else-condition-for-data-check/m-p/65756#M6998</guid>
      <dc:creator>Azsdc</dc:creator>
      <dc:date>2024-04-08T07:06:16Z</dc:date>
    </item>
  </channel>
</rss>

