Skip to content

Commit fb6bed4

Browse files
committed
fix: return uuid type
1 parent 20dad7a commit fb6bed4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pyiceberg/view/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from __future__ import annotations
1818

1919
from typing import Any
20+
from uuid import UUID
2021

2122
from pyiceberg.schema import Schema
2223
from pyiceberg.typedef import Identifier
@@ -73,9 +74,9 @@ def location(self) -> str:
7374
"""Return the view's base location."""
7475
return self.metadata.location
7576

76-
def uuid(self) -> str:
77+
def uuid(self) -> UUID:
7778
"""Return the view's UUID."""
78-
return self.metadata.view_uuid
79+
return UUID(self.metadata.view_uuid)
7980

8081
def sql_for(self, dialect: str) -> SQLViewRepresentation:
8182
"""Return the view representation for the sql dialect."""

0 commit comments

Comments
 (0)