potiuk commented on code in PR #36831:
URL: https://github.com/apache/airflow/pull/36831#discussion_r1455634916
##########
airflow/providers/microsoft/azure/hooks/adx.py:
##########
@@ -142,7 +142,9 @@ def warn_if_collison(key, backcompat_key):
warnings.warn(
f"Conflicting params `{key}` and `{backcompat_key}` found
in extras for conn "
f"{self.conn_id}. Using value for `{key}`. Please ensure
this is the correct value "
- f"and remove the backcompat key `{backcompat_key}`."
+ f"and remove the backcompat key `{backcompat_key}`.",
+ UserWarning,
+ stacklevel=2,
Review Comment:
I'd agree. Having a concrete warning type is a good thing to have.
--
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]