def test_read_simple_table_update_incremental(): table_path = "../rust/tests/data/simple_table" dt = DeltaTable(table_path, version=0) assert dt.to_pyarrow_dataset().to_table().to_pydict() == { "id": [0, 1, 2, 3, 4] } dt.update_incremental() assert dt.to_pyarrow_dataset().to_table().to_pydict() == {"id": [5, 7, 9]}
def test_writer_with_table(existing_table: DeltaTable, sample_data: pa.Table): write_deltalake(existing_table, sample_data, mode="overwrite") existing_table.update_incremental() assert existing_table.to_pyarrow_table() == sample_data