Skip to content

Commit 1065254

Browse files
committed
address comments
1 parent 6834b12 commit 1065254

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

pyiceberg/catalog/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,16 @@ def purge_table(self, identifier: str | Identifier) -> None:
930930
delete_files(io, prev_metadata_files, PREVIOUS_METADATA)
931931
delete_files(io, {table.metadata_location}, METADATA)
932932

933+
def create_view(
934+
self,
935+
identifier: str | Identifier,
936+
schema: Schema | pa.Schema,
937+
view_version: ViewVersion,
938+
location: str | None = None,
939+
properties: Properties = EMPTY_DICT,
940+
) -> View:
941+
raise NotImplementedError
942+
933943
def _create_staged_table(
934944
self,
935945
identifier: str | Identifier,

pyiceberg/catalog/bigquery_metastore.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@
4141
from pyiceberg.table.update import TableRequirement, TableUpdate
4242
from pyiceberg.typedef import EMPTY_DICT, Identifier, Properties
4343
from pyiceberg.utils.config import Config
44-
from pyiceberg.view import View
45-
from pyiceberg.view.metadata import ViewVersion
4644

4745
if TYPE_CHECKING:
4846
import pyarrow as pa
@@ -303,16 +301,6 @@ def register_table(self, identifier: str | Identifier, metadata_location: str) -
303301

304302
return self.load_table(identifier=identifier)
305303

306-
def create_view(
307-
self,
308-
identifier: str | Identifier,
309-
schema: Schema | pa.Schema,
310-
view_version: ViewVersion,
311-
location: str | None = None,
312-
properties: Properties = EMPTY_DICT,
313-
) -> View:
314-
raise NotImplementedError
315-
316304
def list_views(self, namespace: str | Identifier) -> list[Identifier]:
317305
raise NotImplementedError
318306

pyiceberg/view/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class ViewMetadata(IcebergBaseModel):
8686
"""A list of known versions of the view"""
8787
version_log: list[ViewHistoryEntry] = Field(alias="version-log")
8888
"""A list of version log entries"""
89-
properties: Properties = Field(default_factory=dict)
89+
properties: dict[str, str] = Field(default_factory=dict)
9090
"""A string to string map of view properties"""
9191

9292
@field_validator("properties", mode="before")

0 commit comments

Comments
 (0)