You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ma...@apache.org on 2022/04/08 11:14:05 UTC
[airflow] branch oracle-operator-template-parameters updated: Add 'parameters' to templated fields
This is an automated email from the ASF dual-hosted git repository.
malthe pushed a commit to branch oracle-operator-template-parameters
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/oracle-operator-template-parameters by this push:
new a258f51bf3 Add 'parameters' to templated fields
a258f51bf3 is described below
commit a258f51bf3ee9114e33940ba3d77e3880fc85518
Author: Malthe Borch <mb...@gmail.com>
AuthorDate: Fri Apr 8 12:16:26 2022 +0200
Add 'parameters' to templated fields
---
airflow/providers/oracle/operators/oracle.py | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/airflow/providers/oracle/operators/oracle.py b/airflow/providers/oracle/operators/oracle.py
index b120fe6d4e..b60d4b6e89 100644
--- a/airflow/providers/oracle/operators/oracle.py
+++ b/airflow/providers/oracle/operators/oracle.py
@@ -34,12 +34,15 @@ class OracleOperator(BaseOperator):
(templated)
:param oracle_conn_id: The :ref:`Oracle connection id <howto/connection:oracle>`
reference to a specific Oracle database.
- :param parameters: (optional) the parameters to render the SQL query with.
+ :param parameters: (optional, templated) the parameters to render the SQL query with.
:param autocommit: if True, each command is automatically committed.
(default value: False)
"""
- template_fields: Sequence[str] = ('sql',)
+ template_fields: Sequence[str] = (
+ 'parameters',
+ 'sql',
+ )
template_ext: Sequence[str] = ('.sql',)
template_fields_renderers = {'sql': 'sql'}
ui_color = '#ededed'
@@ -73,10 +76,13 @@ class OracleStoredProcedureOperator(BaseOperator):
:param procedure: name of stored procedure to call (templated)
:param oracle_conn_id: The :ref:`Oracle connection id <howto/connection:oracle>`
reference to a specific Oracle database.
- :param parameters: (optional) the parameters provided in the call
+ :param parameters: (optional, templated) the parameters provided in the call
"""
- template_fields: Sequence[str] = ('procedure',)
+ template_fields: Sequence[str] = (
+ 'parameters',
+ 'procedure',
+ )
ui_color = '#ededed'
def __init__(