You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/01/03 21:05:05 UTC

[GitHub] [airflow] frodo2000 commented on a change in pull request #20640: Update operators.rst

frodo2000 commented on a change in pull request #20640:
URL: https://github.com/apache/airflow/pull/20640#discussion_r777703679



##########
File path: docs/apache-airflow/concepts/operators.rst
##########
@@ -208,3 +208,21 @@ 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.3.3 ``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:: python

Review comment:
       Problem is placed if you provide self.params variable in your operator code. I know that is no exception handling for that issue (only class different that apache.airflow.params is covered).
   
   You could remove code and provide more reserved words which should not be used in Operators code (as variable name for example).




-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org