kacpermuda commented on code in PR #40173:
URL: https://github.com/apache/airflow/pull/40173#discussion_r1675473700


##########
airflow/datasets/__init__.py:
##########
@@ -182,6 +190,28 @@ def __eq__(self, other: Any) -> bool:
     def __hash__(self) -> int:
         return hash(self.uri)
 
+    @property
+    def normalized_uri(self) -> str | None:
+        """
+        Returns the normalized and AIP-60 compliant URI whenever possible.
+
+        If we can't retrieve the scheme from URI or no normalizer is provided 
or if parsing fails,
+        it returns None.
+
+        If a normalizer for the scheme exists and parsing is successful we 
return the normalizer result.
+        """
+        if (normalized_scheme := _get_normalized_scheme(self.uri)) is None:
+            return None

Review Comment:
   Addressed in the above discussion.



-- 
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]

Reply via email to