Skip to content

Commit

Permalink
chore: add a reproduction case for the checkpointing failure from #3030
Browse files Browse the repository at this point in the history
Signed-off-by: R. Tyler Croy <[email protected]>
  • Loading branch information
rtyler committed Nov 25, 2024
1 parent f5f7ccc commit 1c450c0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions python/tests/test_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,3 +468,29 @@ def test_checkpoint_with_nullable_false(tmp_path: pathlib.Path):
assert checkpoint_path.exists()

assert DeltaTable(str(tmp_table_path)).to_pyarrow_table() == data


@pytest.mark.pandas
def test_checkpoint_with_multiple_writes(tmp_path: pathlib.Path):
import pandas as pd

write_deltalake(
tmp_path,
pd.DataFrame(
{
"a": ["a"],
"b": [3],
}
),
)
DeltaTable(tmp_path).create_checkpoint()
write_deltalake(
tmp_path,
pd.DataFrame(
{
"a": ["a"],
"b": [100],
}
),
mode="overwrite",
)

0 comments on commit 1c450c0

Please sign in to comment.