Skip to content

Commit 739104e

Browse files
Reload table after replace in integration test (StagedTable blocks scan)
Catalog.replace_table() returns the StagedTable object even after commit, and StagedTable.scan() raises ValueError unconditionally. The catalog-behavior unit tests already follow the load_table-after-replace pattern; align the integration test.
1 parent 66f4a68 commit 739104e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/integration/test_catalog.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,8 @@ def test_replace_table(test_catalog: Catalog, database_name: str, table_name: st
902902
NestedField(field_id=2, name="name", field_type=StringType(), required=False),
903903
NestedField(field_id=3, name="active", field_type=BooleanType(), required=False),
904904
)
905-
replaced = test_catalog.replace_table(identifier, schema=new_schema)
905+
test_catalog.replace_table(identifier, schema=new_schema)
906+
replaced = test_catalog.load_table(identifier)
906907

907908
assert replaced.metadata.table_uuid == original.metadata.table_uuid
908909
assert replaced.current_snapshot() is None

0 commit comments

Comments
 (0)