Skip to content

Commit bff7dd5

Browse files
committed
test: add test for issue #3745
Signed-off-by: Robert Pack <[email protected]>
1 parent 6ddf1a5 commit bff7dd5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

python/tests/test_vacuum.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
import pathlib
33

4+
import pyarrow as pa
45
import pytest
56
from arro3.core import Table
67

@@ -146,3 +147,21 @@ def test_vacuum_keep_versions():
146147
"part-00003-53f42606-6cda-4f13-8d07-599a21197296-c000.snappy.parquet",
147148
"part-00006-46f2ff20-eb5d-4dda-8498-7bfb2940713b-c000.snappy.parquet",
148149
}
150+
151+
152+
# https://github.com/delta-io/delta-rs/issues/3745
153+
def test_issue_3745(tmp_path: pathlib.Path):
154+
data = pa.Table.from_pydict(
155+
{
156+
"x": pa.array(list(range(100)), type=pa.int32()),
157+
}
158+
)
159+
write_deltalake(table_or_uri=tmp_path, data=data, mode="append")
160+
161+
table = DeltaTable(tmp_path)
162+
table.create_checkpoint()
163+
164+
write_deltalake(table_or_uri=tmp_path, data=data, mode="append")
165+
166+
table = DeltaTable(tmp_path)
167+
table.vacuum()

0 commit comments

Comments
 (0)