Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use pa.field and set nullable properly
  • Loading branch information
kevinjqliu committed Apr 30, 2024
commit 4655c97034aef2ccb26ba836143025f1bdb8cbbb
10 changes: 5 additions & 5 deletions pyiceberg/table/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3543,11 +3543,11 @@ def metadata_log_entries(self) -> "pa.Table":
from pyiceberg.table.snapshots import MetadataLogEntry

table_schema = pa.schema([
("timestamp", pa.timestamp(unit='ms'), True),
("file", pa.string(), True),
("latest_snapshot_id", pa.int64(), False),
("latest_schema_id", pa.int32(), False),
("latest_sequence_number", pa.int64(), False),
pa.field("timestamp", pa.timestamp(unit='ms'), nullable=False),
pa.field("file", pa.string(), nullable=False),
pa.field("latest_snapshot_id", pa.int64(), nullable=True),
pa.field("latest_schema_id", pa.int32(), nullable=True),
pa.field("latest_sequence_number", pa.int64(), nullable=True),
])

def metadata_log_entry_to_row(metadata_entry: MetadataLogEntry) -> Dict[str, Any]:
Expand Down