eladkal commented on code in PR #39217:
URL: https://github.com/apache/airflow/pull/39217#discussion_r1587869780
##########
airflow/providers/teradata/hooks/teradata.py:
##########
@@ -32,6 +32,17 @@
if TYPE_CHECKING:
from airflow.models.connection import Connection
+PARAM_TYPES = {bool, float, int, str}
+
+
+def _map_param(value):
+ if value in PARAM_TYPES:
+ # In this branch, value is a Python type; calling it produces
+ # an instance of the type which is understood by the Teradata driver
+ # in the out parameter mapping mechanism.
+ value = value()
+ return value
Review Comment:
Not sure that i understand this function
--
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]