<?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 How can we Implement Conditional Logic on SQL Query Output in Job Workflow in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-can-we-implement-conditional-logic-on-sql-query-output-in/m-p/128380#M48223</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vishesh_berera_0-1755112079334.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19072iF0FAE5F5306F2371/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vishesh_berera_0-1755112079334.png" alt="vishesh_berera_0-1755112079334.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a job where I define a&lt;SPAN&gt;&amp;nbsp;get data&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;task that executes a SQL query. After that, I want to apply conditional logic using an&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;if-else&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;task based on the query output. Specifically, I want to check each row individually—if a condition is met, perform one task; otherwise, perform a different task.&lt;/P&gt;&lt;P&gt;However, in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;if-else&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;task, I'm only able to access the first row of the SQL output using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;{{tasks.get_data.output.first_row.column_name}}. I want to iterate over all rows, similar to how it's done in Azure Data Factory using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;{{tasks.get_data.output.values}}. How can I achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Datengineering&lt;/P&gt;</description>
    <pubDate>Wed, 13 Aug 2025 19:23:24 GMT</pubDate>
    <dc:creator>vishesh_berera</dc:creator>
    <dc:date>2025-08-13T19:23:24Z</dc:date>
    <item>
      <title>How can we Implement Conditional Logic on SQL Query Output in Job Workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-we-implement-conditional-logic-on-sql-query-output-in/m-p/128380#M48223</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vishesh_berera_0-1755112079334.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/19072iF0FAE5F5306F2371/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vishesh_berera_0-1755112079334.png" alt="vishesh_berera_0-1755112079334.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a job where I define a&lt;SPAN&gt;&amp;nbsp;get data&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;task that executes a SQL query. After that, I want to apply conditional logic using an&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;if-else&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;task based on the query output. Specifically, I want to check each row individually—if a condition is met, perform one task; otherwise, perform a different task.&lt;/P&gt;&lt;P&gt;However, in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;if-else&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;task, I'm only able to access the first row of the SQL output using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;{{tasks.get_data.output.first_row.column_name}}. I want to iterate over all rows, similar to how it's done in Azure Data Factory using&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;{{tasks.get_data.output.values}}. How can I achieve this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Datengineering&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 19:23:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-we-implement-conditional-logic-on-sql-query-output-in/m-p/128380#M48223</guid>
      <dc:creator>vishesh_berera</dc:creator>
      <dc:date>2025-08-13T19:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can we Implement Conditional Logic on SQL Query Output in Job Workflow</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-we-implement-conditional-logic-on-sql-query-output-in/m-p/128428#M48238</link>
      <description>&lt;P&gt;Hello, I believe the the fixed parameter option is exists and introduced recently in&amp;nbsp; lake flow declarative pipeline where you need to navigate to the configuration section and add parameters.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 08:10:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-we-implement-conditional-logic-on-sql-query-output-in/m-p/128428#M48238</guid>
      <dc:creator>BR_DatabricksAI</dc:creator>
      <dc:date>2025-08-14T08:10:19Z</dc:date>
    </item>
  </channel>
</rss>

