Skip to content

Commit b592375

Browse files
uranusjralejorodriguez96
authored andcommitted
Implement AIP-60 Dataset URI formats (apache#37005)
1 parent 2f4a610 commit b592375

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

airflow/datasets/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,18 +114,6 @@ class Dataset(os.PathLike, BaseDatasetEventInput):
114114

115115
__version__: ClassVar[int] = 1
116116

117-
@uri.validator
118-
def _check_uri(self, attr, uri: str) -> None:
119-
if uri.isspace():
120-
raise ValueError(f"{attr.name} cannot be just whitespace")
121-
try:
122-
uri.encode("ascii")
123-
except UnicodeEncodeError:
124-
raise ValueError(f"{attr.name!r} must be ascii")
125-
parsed = urlsplit(uri)
126-
if parsed.scheme and parsed.scheme.lower() == "airflow":
127-
raise ValueError(f"{attr.name!r} scheme `airflow` is reserved")
128-
129117
def __fspath__(self) -> str:
130118
return self.uri
131119

0 commit comments

Comments
 (0)