There was an error while loading. Please reload this page.
1 parent 20dad7a commit fb6bed4Copy full SHA for fb6bed4
1 file changed
pyiceberg/view/__init__.py
@@ -17,6 +17,7 @@
17
from __future__ import annotations
18
19
from typing import Any
20
+from uuid import UUID
21
22
from pyiceberg.schema import Schema
23
from pyiceberg.typedef import Identifier
@@ -73,9 +74,9 @@ def location(self) -> str:
73
74
"""Return the view's base location."""
75
return self.metadata.location
76
- def uuid(self) -> str:
77
+ def uuid(self) -> UUID:
78
"""Return the view's UUID."""
- return self.metadata.view_uuid
79
+ return UUID(self.metadata.view_uuid)
80
81
def sql_for(self, dialect: str) -> SQLViewRepresentation:
82
"""Return the view representation for the sql dialect."""
0 commit comments