mik-laj commented on a change in pull request #20640:
URL: https://github.com/apache/airflow/pull/20640#discussion_r779558160
##########
File path: docs/apache-airflow/concepts/operators.rst
##########
@@ -208,3 +208,22 @@ In this case, ``order_data`` argument is passed:
``{"1001": 301.27, "1002": 433.
Airflow uses Jinja's `NativeEnvironment
<https://jinja.palletsprojects.com/en/2.11.x/nativetypes/>`_
when ``render_template_as_native_obj`` is set to ``True``.
With ``NativeEnvironment``, rendering a template produces a native Python type.
+
+.. _concepts:reserved-keywords:
+
+Reserved params keyword
+-----------------------
+
+In Apache Airflow 2.2.0 ``params`` variable is used during DAG serialization.
Please do not use that name in third party operators.
+If you upgrade your environment and get the following error:
+
+.. code-block::
+
+ Broken DAG: [/opt/airflow/dags/ImamRefresh_DAG.py] Traceback (most recent
call last):
+ File
"/home/airflow/airflow_venv/lib64/python3.6/site-packages/airflow/serialization/serialized_objects.py",
line 574, in serialize_operator
+ serialize_op['params'] = cls._serialize_params_dict(op.params)
+ File
"/home/airflow/airflow_venv/lib64/python3.6/site-packages/airflow/serialization/serialized_objects.py",
line 447, in _serialize_params_dict
+ if f'{v.__module__}.{v.__class__.__name__}' ==
'airflow.models.param.Param':
Review comment:
```suggestion
```
I have the impression that only the error message is enough.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]