This is an automated email from the ASF dual-hosted git repository.

jedcunningham pushed a commit to branch v2-9-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit a0249d4a9ecda1c0dc270c52eb5b19ab4cc0f460
Author: Elad Kalif <45845474+elad...@users.noreply.github.com>
AuthorDate: Mon Apr 8 19:09:17 2024 +0300

    Remove decorator from rendering fields example (#38827)
    
    * Remove decorator from rendering fields example
    
    * fix
    
    (cherry picked from commit 285f037dbcc0f5e23c2d6ac99bfd6cab86c96ac3)
---
 docs/apache-airflow/core-concepts/operators.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/apache-airflow/core-concepts/operators.rst 
b/docs/apache-airflow/core-concepts/operators.rst
index c7193789bc..0330ef43fb 100644
--- a/docs/apache-airflow/core-concepts/operators.rst
+++ b/docs/apache-airflow/core-concepts/operators.rst
@@ -246,9 +246,9 @@ you can pass ``render_template_as_native_obj=True`` to the 
DAG as follows:
         return json.loads(data_string)
 
 
-    @task(task_id="transform")
     def transform(order_data):
         print(type(order_data))
+        total_order_value = 0
         for value in order_data.values():
             total_order_value += value
         return {"total_order_value": total_order_value}

Reply via email to