Skip to content

Commit e321bc4

Browse files
author
Yingjian Wu
committed
rebase and fix test
1 parent f25f406 commit e321bc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/table/test_snapshots.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ def test_snapshot_summary_collector_with_partition_limit_in_constructor() -> Non
231231
NestedField(field_id=3, name="int_field", field_type=IntegerType(), required=False),
232232
)
233233
spec = PartitionSpec(PartitionField(source_id=3, field_id=1001, transform=IdentityTransform(), name="int_field"))
234-
data_file_1 = DataFile(content=DataFileContent.DATA, record_count=100, file_size_in_bytes=1234, partition=Record(int_field=1))
235-
data_file_2 = DataFile(content=DataFileContent.DATA, record_count=200, file_size_in_bytes=4321, partition=Record(int_field=2))
234+
data_file_1 = DataFile.from_args(content=DataFileContent.DATA, record_count=100, file_size_in_bytes=1234, partition=Record(1))
235+
data_file_2 = DataFile.from_args(content=DataFileContent.DATA, record_count=200, file_size_in_bytes=4321, partition=Record(2))
236236

237237
# When
238238
ssc.add_file(data_file=data_file_1, schema=schema, partition_spec=spec)

0 commit comments

Comments
 (0)