jsjasonseba commented on code in PR #51513:
URL: https://github.com/apache/airflow/pull/51513#discussion_r2134584591
##########
providers/alibaba/src/airflow/providers/alibaba/cloud/hooks/maxcompute.py:
##########
@@ -45,7 +45,7 @@ def fallback_to_default_project_endpoint(func: Callable[...,
RT]) -> Callable[..
def inner_wrapper(self, **kwargs) -> RT:
required_args = ("project", "endpoint")
for arg_name in required_args:
- kwargs[arg_name] = kwargs.get(arg_name, getattr(self, arg_name))
+ kwargs[arg_name] = getattr(self, arg_name) if kwargs.get(arg_name)
is None else kwargs[arg_name]
Review Comment:
This change is necessary because if the `kwargs` exist but set to `None`, it
will use `None` instead of the default property
--
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]