<?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 Re: For each task field in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/for-each-task-field/m-p/105076#M41986</link>
    <description>&lt;P&gt;Ok, but if I'm using a for each task, and catch each input from the email_info value that I was passing:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;          for_each_task:
            inputs: "{{tasks.get_email_infos.values.email_info}}"
            task:
              task_key: process_export_email_iteration&lt;/LI-CODE&gt;&lt;P&gt;for catching each parameter:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;              notebook_task:
                notebook_path: ../notebook/workflow/client_export.py
                base_parameters:
                  function: export_email
                  env: ${bundle.target}
                  id: "{{input.id}}"
                  rendered_next_run: "{{input.rendered_next_run}}"&lt;/LI-CODE&gt;&lt;P&gt;in the task I need to use the widget and convert again, idk if I explained well my problem that I was having using this path with "for loop"&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2025 20:29:17 GMT</pubDate>
    <dc:creator>jeremy98</dc:creator>
    <dc:date>2025-01-09T20:29:17Z</dc:date>
    <item>
      <title>For each task field</title>
      <link>https://community.databricks.com/t5/data-engineering/for-each-task-field/m-p/105035#M41974</link>
      <description>&lt;P&gt;Hi community,&lt;BR /&gt;I was wondering after passing a list of dict through tasks using .taskValue.set() method, how to maintain the same data type through each task?&lt;/P&gt;&lt;P&gt;Because seems, that when I use the for loop and getting by the parameters each element of the dict that I passed I need to cast again the values, is it possible to maintain the data type through each task?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 18:17:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/for-each-task-field/m-p/105035#M41974</guid>
      <dc:creator>jeremy98</dc:creator>
      <dc:date>2025-01-09T18:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: For each task field</title>
      <link>https://community.databricks.com/t5/data-engineering/for-each-task-field/m-p/105060#M41976</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/133094"&gt;@jeremy98&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Have you reviewed this:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/jobs/task-values.html" target="_blank"&gt;https://docs.databricks.com/en/jobs/task-values.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 18:35:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/for-each-task-field/m-p/105060#M41976</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-09T18:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: For each task field</title>
      <link>https://community.databricks.com/t5/data-engineering/for-each-task-field/m-p/105061#M41977</link>
      <description>&lt;P&gt;yes, I reviewed this, but this is a json serialised that could be a problem if a want to maintain the same data type through each task or not?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 18:36:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/for-each-task-field/m-p/105061#M41977</guid>
      <dc:creator>jeremy98</dc:creator>
      <dc:date>2025-01-09T18:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: For each task field</title>
      <link>https://community.databricks.com/t5/data-engineering/for-each-task-field/m-p/105066#M41979</link>
      <description>&lt;P&gt;Yeah, to ensure that the data types are maintained, you can convert the values to the desired types after deserialization. This is necessary because JSON does not distinguish between integers and floats, and all numbers are deserialized as floats&lt;BR /&gt;The &lt;CODE&gt;dbutils.jobs.taskValues.set()&lt;/CODE&gt; method serializes the data to JSON, and &lt;CODE&gt;dbutils.jobs.taskValues.get()&lt;/CODE&gt; deserializes it back&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 19:02:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/for-each-task-field/m-p/105066#M41979</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-09T19:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: For each task field</title>
      <link>https://community.databricks.com/t5/data-engineering/for-each-task-field/m-p/105076#M41986</link>
      <description>&lt;P&gt;Ok, but if I'm using a for each task, and catch each input from the email_info value that I was passing:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;          for_each_task:
            inputs: "{{tasks.get_email_infos.values.email_info}}"
            task:
              task_key: process_export_email_iteration&lt;/LI-CODE&gt;&lt;P&gt;for catching each parameter:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;              notebook_task:
                notebook_path: ../notebook/workflow/client_export.py
                base_parameters:
                  function: export_email
                  env: ${bundle.target}
                  id: "{{input.id}}"
                  rendered_next_run: "{{input.rendered_next_run}}"&lt;/LI-CODE&gt;&lt;P&gt;in the task I need to use the widget and convert again, idk if I explained well my problem that I was having using this path with "for loop"&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 20:29:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/for-each-task-field/m-p/105076#M41986</guid>
      <dc:creator>jeremy98</dc:creator>
      <dc:date>2025-01-09T20:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: For each task field</title>
      <link>https://community.databricks.com/t5/data-engineering/for-each-task-field/m-p/105197#M42037</link>
      <description>&lt;P&gt;I solved it, passing the variable as a list of string (dict) as input&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 15:08:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/for-each-task-field/m-p/105197#M42037</guid>
      <dc:creator>jeremy98</dc:creator>
      <dc:date>2025-01-10T15:08:21Z</dc:date>
    </item>
  </channel>
</rss>

