Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rm pandas dependency in test
Browse files Browse the repository at this point in the history
ion-elgreco committed Mar 25, 2024
1 parent f6c476b commit 8f71a79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/tests/test_writer.py
Original file line number Diff line number Diff line change
@@ -1508,7 +1508,9 @@ def test_rust_decimal_cast(tmp_path: pathlib.Path):

write_deltalake(tmp_path, data, mode="append", engine="rust")

assert DeltaTable(tmp_path).to_pandas()["x"][0] == Decimal("100.1")
assert DeltaTable("test-table").to_pyarrow_table()["x"][0].as_py() == Decimal(
"100.1"
)

# Write smaller decimal, works since it's fits in the previous decimal precision, scale
data = pa.table({"x": pa.array([Decimal("10.1")])})

0 comments on commit 8f71a79

Please sign in to comment.